<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear Wolfgang,</p>
    <p>Have you looked into the <i>save-chunks-and-productions.lisp </i>in
      the extras folder? I never tried it but to me it reads as if it
      could do what you are looking for!<br>
    </p>
    <p>the readme:</p>
    <p>
      <blockquote type="cite">The save-chunks-and-productions.lisp file
        defines a new command called <br>
        save-chunks-and-productions that can be used to write a model's
        current <br>
        declarative memory, set of productions, general parameters
        related to <br>
        declarative and procedural, the appropriate chunk and
        proceduction <br>
        parameters, and the chunks currently in buffers out to a model
        file.<br>
        <br>
        It can be loaded by calling (require-extra "save-model") and
        that<br>
        can be placed into a model file to have it loaded automatically.<br>
        Alternatively, one can put the save-chunks-and-productions.lisp
        file <br>
        into the tools directory of the distribution to have it always
        loaded<br>
        or it can be explicitly loaded as needed.<br>
        <br>
        To use it call the save-chunks-and-productions function passing
        it<br>
        a string which indicates a file to open and write the model
        information<br>
        into.<br>
        <br>
        More details on exactly what is saved and how to call the new
        command<br>
        can be found in the comments of the
        save-chunks-and-productions.lisp<br>
        file.</blockquote>
      Best,<br>
      David<br>
    </p>
    <div class="moz-cite-prefix">Am 08.05.2024 um 13:44 schrieb
      Schoppek, Wolfgang:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b7b30d59029b45c890fd49f60db0779f@uni-bayreuth.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi all,<o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I’m wondering if anybody
            has written a LISP function that creates ACT-R code from the
            current state of the model that can be included in an
            existing model in order to load the last state of the model
            at a later point in time. For my purposes, something like
            that for new chunks would suffice.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">An example:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">My model has created the
            new chunks chunk23, chunk34, chunk45.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I can get a list of
            those using sdm.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I can print their
            parameters using sdp.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">What I’m looking for is
            a function that translates this into something like<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(add-dm <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">  (chunk23 isa …)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"> (chunk34 …<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">  …<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(sdp chunk23
            :reference-count 5 …)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(sdp chunk34 …<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">  …<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">… which I can add to my
            model later to start it from the state it reached at the end
            of the last run.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">  Wolfgang<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ACT-R-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ACT-R-users@act-r.psy.cmu.edu">ACT-R-users@act-r.psy.cmu.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users">https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users</a>
</pre>
    </blockquote>
    <div class="moz-signature"><br>
    </div>
  </body>
</html>