ankane / tensorflow-ruby

Deep learning for Ruby
Apache License 2.0
378 stars 14 forks source link

xor example #6

Open nastepnym opened 4 years ago

nastepnym commented 4 years ago

Is possible add simple xor example? similar this: https://github.com/StephenOman/TensorFlowExamples/blob/master/xor nn/xor_nn.py

I have a small set of data and simple sequencial model. I need only get prediction information.

ankane commented 4 years ago

Hey @nastepnym, the current focus is on the TensorFlow 2.0 (Keras) API, so that example isn't supported. TensorFlow is a huge library, so want to get the 2.0 API to a good place before considering 1.0 support.

fab1an2 commented 4 years ago

You know how this works. Please write simple example xor. I'm interesting too. Ideal You write tensorflow in C and Ruby.

Help beginers ;)

ghost commented 2 years ago

Hey @nastepnym, the current focus is on the TensorFlow 2.0 (Keras) API

@ankane would you share a few pointers on how I can get started? I would like to look into this.

fab1an2 commented 2 years ago

this is complicated, xor is easy

0xtrzy commented 2 years ago

(x_train, y_train), (x_test, y_test) = mnist.load_data x_train = x_train / 255.0 x_test = x_test / 255.0

in keras, how create data by hand? data is from 0 to 1.0 or -1.0 to 1.0 ?

texrg commented 2 years ago

yes please add simple example and meybe set of simple data