-
Notifications
You must be signed in to change notification settings - Fork 42
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
Scene Segmentation with SynF #509
Comments
@amyvanee did you try fitting proglearn for one task only? I would not try it with other people's code. Please try to train it on only one task using add_task first. Let's not use parallel for now. |
@amyvanee Which version of |
@PSSF23 Sorry about that, I am using Proglearn 0.0.5 |
@jdey4 I tried going to the basics more and initializing a LifelongClassification Forest, but I got an error. % Declare the progressive learner model (L2F)
learner = LifelongClassificationForest()
% add the task
learner.add_task(
flat_x,
flat_y,
task_id=0
) And the output, TypeError Traceback (most recent call last)
TypeError: only size-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
<ipython-input-18-74e8ef13550e> in <module>
3
4 # add the task
----> 5 learner.add_task(
6 flat_x,
7 flat_y,
~\AppData\Local\Programs\Python\Python39\lib\site-packages\proglearn-0.0.5-py3.9.egg\proglearn\forest.py in add_task(self, X, y, task_id, n_estimators, tree_construction_proportion, kappa, max_depth)
122 max_depth = self.default_max_depth
123
--> 124 X, y = check_X_y(X, y)
125 return self.pl_.add_task(
126 X,
~\AppData\Local\Programs\Python\Python39\lib\site-packages\sklearn\utils\validation.py in check_X_y(X, y, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, estimator)
954 raise ValueError("y cannot be None")
955
--> 956 X = check_array(
957 X,
958 accept_sparse=accept_sparse,
~\AppData\Local\Programs\Python\Python39\lib\site-packages\sklearn\utils\validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, estimator)
736 array = array.astype(dtype, casting="unsafe", copy=False)
737 else:
--> 738 array = np.asarray(array, order=order, dtype=dtype)
739 except ComplexWarning as complex_warning:
740 raise ValueError(
~\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core\_asarray.py in asarray(a, dtype, order)
81
82 """
---> 83 return array(a, dtype, copy=False, order=order)
84
85
ValueError: setting an array element with a sequence. I double checked, and below are shapes,
If I try putting in any of the other data, I get an error that the input should be 2D. Also, it is weird that the shape of data_y[0] is not the same as for data_x[0]? Thank you for your help! |
@amyvanee always use the latest version, which is |
Thank you for your help! |
|
BTW are you working on #39 ? Why didn't you comment on it? |
|
@amyvanee No problem. As the example in your link, Comment on #39 so it could be assigned to you. Are there other students sharing the issue? |
@PSSF23 Thank you, I will try that! Yes, I am working with Narayani Wagle (@nhwagle) and Kevin Rao (@KhelmholtzR) We made a separate GitHub repo with some of our progress |
#39 My issue is about adjusting Proglearn so we can do scene segmentation after flattening the images.
Reproducing code example:
Error message
Version information
The text was updated successfully, but these errors were encountered: