Skip to content
New issue

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

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

Already on GitHub? # to your account

setting an array element with a sequence #110

Open
LeiYangGH opened this issue Nov 20, 2024 · 0 comments
Open

setting an array element with a sequence #110

LeiYangGH opened this issue Nov 20, 2024 · 0 comments

Comments

@LeiYangGH
Copy link

PS C:\G\ML-From-Scratch> python mlfromscratch/examples/polynomial_regression.py
Finding regularization constant using cross validation:
Traceback (most recent call last):
File "C:\G\ML-From-Scratch\mlfromscratch\examples\polynomial_regression.py", line 81, in
main()
File "C:\G\ML-From-Scratch\mlfromscratch\examples\polynomial_regression.py", line 32, in main
cross_validation_sets = k_fold_cross_validation_sets(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user.conda\envs\tor\Lib\site-packages\mlfromscratch-0.0.4-py3.12.egg\mlfromscratch\utils\data_manipulation.py", line 145, in k_fold_cross_validation_sets
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (10, 4) + inhomogeneous part.

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

No branches or pull requests

1 participant