Giter VIP home page Giter VIP logo

handwriting_cnn's Introduction

handwriting_cnn

Handwriting Recognition using CNN

handwriting_cnn's People

Contributors

tejasreddy9 avatar

Stargazers

Sondos Ahmad Aabed avatar Austin Semple avatar Karthick avatar Leon Wong avatar Cristian Mundo avatar Muntaha Shams avatar  avatar Tejas Narad avatar Nitin Ranjan avatar GiangDo avatar Sina Torfi avatar Shervin avatar Manikant Kella avatar

Watchers

James Cloos avatar  avatar Shervin avatar

handwriting_cnn's Issues

Regarding an error while executing handwriting_cnn

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.