Coder Social home page Coder Social logo

Comments (7)

RyanMcCarl avatar RyanMcCarl commented on June 23, 2024

Modules imported:

from future import division
import time
import random
import itertools
from operator import itemgetter
from heapq import *

from compsci.

arwer13 avatar arwer13 commented on June 23, 2024

Oh, I've got this wasn't a question but would leave it here :)
Note that __future__ is transformed into future by github Markdown processor. There are multiple ways to format text as code in markdown:

  • whole block:

    ```
    Text inside is block code
    ```
    
  • or just indent block (cannot be shown here because if would be preprocessed)

  • or in-lined version:

    And this is code

In python 2 and python 3 integer division works differently:

Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
>>> 3/4
0
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
>>> 3/4
0.75

In Python2 future module is intended to allow to write more Python 3 compatible code, so this import changes behavior of integer division. Another future feature we've encountered is from __future__ import print_function.

from compsci.

RyanMcCarl avatar RyanMcCarl commented on June 23, 2024

That's helpful, thanks!

from compsci.

arwer13 avatar arwer13 commented on June 23, 2024

I've started studying Anki's repetition algorithm, planning to represent it with some sort of flow diagram in time. I'm also going to try to describe the way I reverse-engineered it and maybe leave some gaps in the algorithm for you.

from compsci.

RyanMcCarl avatar RyanMcCarl commented on June 23, 2024

That sounds perfect, thanks. I'll post issues with syntax I don't understand.

from compsci.

RyanMcCarl avatar RyanMcCarl commented on June 23, 2024

It would be nice to build a simple implementation of it with no GUI.

from compsci.

arwer13 avatar arwer13 commented on June 23, 2024

There GUI is separated from this logic, so it can be used more or less as it is.

from compsci.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.