Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported object type BayesianClassification.ipynb #2

Open
NoamCodes opened this issue Apr 26, 2024 · 2 comments
Open

unsupported object type BayesianClassification.ipynb #2

NoamCodes opened this issue Apr 26, 2024 · 2 comments

Comments

@NoamCodes
Copy link
Collaborator

in the last part of BayesianClassification.ipynb the error that we get when trying to run it is an unsupported object type.

@NoamCodes
Copy link
Collaborator Author

`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in <cell line: 1>()
----> 1 history = bnn.fit( xTrain, tf.one_hot(yTrain,nClasses),
2 epochs=25, verbose=1, batch_size=128, class_weight=class_weight,
3 use_multiprocessing=True, validation_split=0.2)

1 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/constant_op.py in convert_to_eager_tensor(value, ctx, dtype)
101 dtype = dtypes.as_dtype(dtype).as_datatype_enum
102 ctx.ensure_initialized()
--> 103 return ops.EagerTensor(value, ctx.device_name, dtype)
104
105

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int).`

@NoamCodes
Copy link
Collaborator Author

we also get the same error in "BayesianClassification_Binary.ipynb"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant