machine-learning-projects's People
Forkers
alfredang mayankgg pavan540 shulyalkar1 tssupriya85 d0tn3t hbalakrishna koramnithin j8 clustersdata nafisur-jspl sachinprabhu007 kinnzo omarvri adityarai7297 jaivrat pkumar2015181 henrykochde spraphul ektaaggarwal24 aletheatoh mayurnagar bouyuc rahulbendre1 ipsita-praharaj paras7735 elb5465 biranchi2018 aniruddha98 jeetkarsh technoartista pankajb1997 narasimhaprabhu mdrony01 amitkp086 yoganandmf shubhampatil5 safafadhile satyajitsen aiern codesirohi kinorisr kumarav1nash victorjanuel chindala-pavan jvk1987 prime-nemesis khoalx taha86347 rakshana-24 smartmagicianmachine-learning-projects's Issues
ValueError when running seq2seq_train.py
Hi all,
I met ValueError: Sample larger than population when I ran seq2seq_train.py,
and I ran it on python3.5 virtualenv , tensorflow 1.0.0, numpy1.13.1
Is there any parameter or code should I adjust to run it correctly
btw, line 17 in data_util.py could be np.arange(...) not np.arrange(...)
Thanks for help!
Sampling error - random batch generator
I noticed an error when trying to generate random batches. I was hoping to see if you had any idea how this could be resolved?
Traceback (most recent call last): File "seq2seq_train.py", line 38, in <module> sess = model.train(train_batch_gen, val_batch_gen, sess) File "/Users/anjirhossain/Desktop/tmp/text-summarizer/seq2seq_wrapper.py", line 146, in train self.train_batch(sess, train_set) File "/Users/anjirhossain/Desktop/tmp/text-summarizer/seq2seq_wrapper.py", line 101, in train_batch batchX, batchY = train_batch_gen.__next__() File "/Users/anjirhossain/Desktop/tmp/text-summarizer/data_utils.py", line 21, in generate_random_batch sample_idx = sample(list(np.arange(len(x))), config.batch_size) File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/random.py", line 318, in sample raise ValueError("Sample larger than population or is negative") ValueError: Sample larger than population or is negative
After digging around, the suggestions I found were to use sampling with replacement via random.choice
. I'm not entirely sure if this is a sampling issue or something else?
hi,anooshac
recently,i have downloaded this project,i want to learn about it,however,when I run your project,I met many errors, I really really hope that you could check this project and update it, we would be very pleasure if you could help us again! Thank you!
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.