Comments (7)
Modules imported:
from future import division
import time
import random
import itertools
from operator import itemgetter
from heapq import *
from compsci.
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.
That's helpful, thanks!
from compsci.
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.
That sounds perfect, thanks. I'll post issues with syntax I don't understand.
from compsci.
It would be nice to build a simple implementation of it with no GUI.
from compsci.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compsci.