Latest recipes tagged "learning"http://code.activestate.com/recipes/tags/learning/new/2014-03-01T18:56:19-08:00ActiveState Code RecipesRSA: a simple and easy-to-read implementation (Python) 2014-03-01T18:56:19-08:00Andrea Corbellinihttp://code.activestate.com/recipes/users/4186880/http://code.activestate.com/recipes/578838-rsa-a-simple-and-easy-to-read-implementation/ <p style="color: grey"> Python recipe 578838 by <a href="/recipes/users/4186880/">Andrea Corbellini</a> (<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/learning/">learning</a>, <a href="/recipes/tags/rsa/">rsa</a>, <a href="/recipes/tags/security/">security</a>). </p> <p>This is a really simple RSA implementation. It does not want to be neither fast nor safe; it's aim is to provide a working and easy to read codebase for people interested in discovering the RSA algorithm.</p> Droids 2 ( IF ) (Python) 2013-08-13T09:12:11-07:00jayhttp://code.activestate.com/recipes/users/4186699/http://code.activestate.com/recipes/578636-droids-2-if/ <p style="color: grey"> Python recipe 578636 by <a href="/recipes/users/4186699/">jay</a> (<a href="/recipes/tags/beginner/">beginner</a>, <a href="/recipes/tags/commandline/">commandline</a>, <a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/if/">if</a>, <a href="/recipes/tags/learning/">learning</a>, <a href="/recipes/tags/python3/">python3</a>, <a href="/recipes/tags/text/">text</a>). Revision 2. </p> <h4 id="-for-learners-and-beginners-like-myself-">-For learner's and beginner's like myself -</h4> <h4 id="-and-for-anyone-who-may-have-enjoyed-droids-">-and for anyone who may have enjoyed Droids. -</h4> Learning to calculate (mental arithmetic) (Python) 2012-05-11T03:49:48-07:00Thomas Lehmannhttp://code.activestate.com/recipes/users/4174477/http://code.activestate.com/recipes/578111-learning-to-calculate-mental-arithmetic/ <p style="color: grey"> Python recipe 578111 by <a href="/recipes/users/4174477/">Thomas Lehmann</a> (<a href="/recipes/tags/learning/">learning</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/persistence/">persistence</a>, <a href="/recipes/tags/statistic/">statistic</a>, <a href="/recipes/tags/training/">training</a>). Revision 4. </p> <p><strong>What is it about?</strong></p> <ul> <li>Learning to use the basic math operation (+, -, *,/).</li> <li>Print out of statistics to show you where you are.</li> <li>Being able to define your own training sessions.</li> <li>Sessions with number of tasks or with a time limit.</li> </ul> <p><strong>What has changed?</strong></p> <ul> <li>Revision 2: Contains now the <strong>tasks numbering</strong>.</li> <li>Revision 2: You can see overall how long you didn't a training.</li> <li>Revision 2: You also can see per kind of session how long you didn't a training.</li> <li>Revision 3: <strong>Trainings parameter as kind of policy</strong> in a separate class also used as key for statistic.</li> <li>Revision 3: <strong>New session type</strong>: timeout (as many tasks as possible until timeout exceeded)</li> <li>Revision 3: I'm also sorry to say that this revision breaks compatibility with previously stored sessions.</li> <li>Revision 4: <strong>Integer division</strong> supported.</li> </ul> Incremental PCA (Python) 2010-05-01T18:04:39-07:00Micha Kalfonhttp://code.activestate.com/recipes/users/4173851/http://code.activestate.com/recipes/577213-incremental-pca/ <p style="color: grey"> Python recipe 577213 by <a href="/recipes/users/4173851/">Micha Kalfon</a> (<a href="/recipes/tags/incremental/">incremental</a>, <a href="/recipes/tags/klt/">klt</a>, <a href="/recipes/tags/learning/">learning</a>, <a href="/recipes/tags/numpy/">numpy</a>, <a href="/recipes/tags/pca/">pca</a>, <a href="/recipes/tags/scipy/">scipy</a>, <a href="/recipes/tags/svd/">svd</a>, <a href="/recipes/tags/vision/">vision</a>). </p> <p>An incremental PCA algorithm in python. </p> <p>Incremental PCA allows computing an approximation of the principal components on large data sets as observations are given sequentially.</p>