Comments (7)
Try going through your main method and seeing where the prints are coming out (maybe add some extra print statements).
If there is a part where it's taking exceedingly long, then check out which function it is by looking at what has printed and what hasn't.
Then try to add some prints inside that function - you'll find a bottleneck and then you can try and tinker with it.
from assignments.
It might have gone into a infinite loop. Please check that
from assignments.
No, it is not going into infinite loop.
I wrote extra doc-tests. Those also giving the right results.
from assignments.
See this log file.
If my logic was not right , So how I can get correct partition .
See the result without following function calling --
print('norm_cut scores by max_depth:')
print(score_max_depths(subgraph, range(1,5)))
I think, problem id different here. I sent a mail containing my a1.py file.
So please check once and let me know.
from assignments.
Same here. My program does pass all the doctests but takes 53 minutes to do so.
from assignments.
Again, I'm going to re-suggest my print method from earlier in this thread in order to figure out where your program is taking up all this time.
Find whichever function(s) are doing this, then try to optimize it.
from assignments.
My codes was running very slowly too. But I figured out it is the problem that my bfs method is not the optimal realization of the algorithm. Suggest you can check your bfs first.
from assignments.
Related Issues (20)
- Scope/Code Indentation problems :| HOT 1
- Pushing problem
- How to handle case for a graph with max_depth = 1 HOT 1
- [HW1] node2num_paths in the function bfs
- Output Issue HOT 1
- score_max_depths outputs not matching with the Professor's output
- Regarding next assignment (A2) and topics covered by midterm HOT 1
- Question about Assignment 2 eval_all_combinations() HOT 3
- A2 top coefficients per class HOT 1
- A2 output not the same as log.txt
- doctest failed on vectorize... HOT 4
- Assignment 2 different worst result HOT 5
- Don't open issues here.
- I am having my testing accuracy as 0.54% is there any way to resolve this? HOT 2
- Regarding Community Detection HOT 2
- Need information regarding source of data
- Bonus Assignment : (note the edge order) HOT 1
- Processing time evaluation
- a2.py output
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 assignments.