Comments (4)
check for nested for-loops.
I had problem with "do condprob[t][c] ← " earlier
after I fixed the problem, it only takes a few seconds now
from main.
Okay. I guess it is taking more time in "classify" only. let me try out this again.
from main.
You can try a profiler to see what part of your code is slow. E.g:
http://jiffyclub.github.io/snakeviz/
On Tue, Mar 29, 2016 at 12:48 AM, ChangediyaSunny [email protected]
wrote:
Code is taking 5-6 mins even after improvements. what else can be done ?
any suggestions ?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#149
from main.
It was happening to me because I calculated the sum in the denominator every time I iterated over a t in V. The sum of therms for every class can be calculated before the loop. Changed it and it's considerably faster.
from main.
Related Issues (20)
- score of terms never seen before HOT 1
- Classify Takes 3-5 minutes to run HOT 3
- A3: All ham, no spam HOT 3
- A3: Word Probability Doctest HOT 2
- A3: Formatting output for classify method HOT 2
- error value in bonus assignment HOT 1
- Bonus Assignment: how to Initialize K mean vector to be first k-docs HOT 4
- Bonus Assignment: need of "mean_norm" in distance() method ? HOT 6
- Is submission for the Bonus assignment through our personal repository? HOT 1
- Bonus: I'm off by a little in each iteration HOT 8
- Runitme for bonus assignment HOT 3
- A4: what does 'linked' in get_links() mean? HOT 8
- PageRank: Issue with compute page rank HOT 4
- Ada Lovelace Example Different HOT 4
- Wrong Inlinks values from read_links method HOT 3
- HITS normalization HOT 1
- get_top_pageranks HOT 1
- Smaller Subset of data log file
- Off by 0.0004 & 12 links HOT 4
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 main.