Handwriting Recognition using CNN
tejasreddy9 / handwriting_cnn Goto Github PK
View Code? Open in Web Editor NEWHandwriting Recognition using CNN
Home Page: https://tejasreddy9.github.io/handwriting_cnn
License: MIT License
Handwriting Recognition using CNN
Home Page: https://tejasreddy9.github.io/handwriting_cnn
License: MIT License
Sir.....
train_files, rem_files, train_targets, rem_targets = train_test_split(
img_files, encoded_Y, train_size=0.66, random_state=52, shuffle= True)
validation_files, test_files, validation_targets, test_targets = train_test_split(
rem_files, rem_targets, train_size=0.5, random_state=22, shuffle=True)
print(train_files.shape, validation_files.shape, test_files.shape)
print(train_targets.shape, validation_targets.shape, test_targets.shape)
When I execute these four lines....Its showing the following error....
ValueError Traceback (most recent call last)
in
1 train_files, rem_files, train_targets, rem_targets = train_test_split(
----> 2 img_files, encoded_Y, train_size=0.66, random_state=52, shuffle=True)
3
4 validation_files, test_files, validation_targets, test_targets = train_test_split(
5 rem_files, rem_targets, train_size=0.5, random_state=22, shuffle=True)
~\Anaconda3\lib\site-packages\sklearn\model_selection_split.py in train_test_split(*arrays, **options)
2114 raise TypeError("Invalid parameters passed: %s" % str(options))
2115
-> 2116 arrays = indexable(*arrays)
2117
2118 n_samples = _num_samples(arrays[0])
~\Anaconda3\lib\site-packages\sklearn\utils\validation.py in indexable(*iterables)
235 else:
236 result.append(np.array(X))
--> 237 check_consistent_length(*result)
238 return result
239
~\Anaconda3\lib\site-packages\sklearn\utils\validation.py in check_consistent_length(*arrays)
210 if len(uniques) > 1:
211 raise ValueError("Found input variables with inconsistent numbers of"
--> 212 " samples: %r" % [int(l) for l in lengths])
213
214
ValueError: Found input variables with inconsistent numbers of samples: [4899, 0]
Could you please help me in solving this error...
Hope you will do the needful as early as possible..
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.