You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
input_train is a 40003 matrix, output_train is a 40001 matrix.
error:
"
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:153: RuntimeWarning: divide by zero encountered in true_divide
self.alpha_ = self.gamma/(self.m_ ** 2)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:152: RuntimeWarning: invalid value encountered in multiply
self.gamma = 1 - self.alpha_*np.diag(self.sigma_)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:153: RuntimeWarning: invalid value encountered in true_divide
self.alpha_ = self.gamma/(self.m_ ** 2)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:108: RuntimeWarning: invalid value encountered in less
keep_alpha = self.alpha_ < self.threshold_alpha
1
2
Traceback (most recent call last):
File "E:\python_work\pitch_system\src\relevance_vector_machine\rvr_train_test1.py", line 50, in
mse_rvr = mean_squared_error(output_2_rvr, output_test)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\regression.py", line 238, in mean_squared_error
y_true, y_pred, multioutput)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\regression.py", line 76, in _check_reg_targets
y_true = check_array(y_true, ensure_2d=False)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 453, in check_array
_assert_all_finite(array)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 44, in _assert_all_finite
" or a value too large for %r." % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
"
How can I deal with it ? Thank you very much!
The text was updated successfully, but these errors were encountered:
Hi, when I trained a model using the codes:
"clf = RVR(kernel = 'rbf',n_iter=300,alpha=1e-3,beta=1.e-3,threshold_alpha=1e3)
clf.fit(input_train, output_train)
output_2_rvr = clf.predict(input_test)"
input_train is a 40003 matrix, output_train is a 40001 matrix.
error:
"
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:153: RuntimeWarning: divide by zero encountered in true_divide
self.alpha_ = self.gamma/(self.m_ ** 2)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:152: RuntimeWarning: invalid value encountered in multiply
self.gamma = 1 - self.alpha_*np.diag(self.sigma_)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:153: RuntimeWarning: invalid value encountered in true_divide
self.alpha_ = self.gamma/(self.m_ ** 2)
D:\ProgramData\Anaconda3\lib\site-packages\skrvm\rvm.py:108: RuntimeWarning: invalid value encountered in less
keep_alpha = self.alpha_ < self.threshold_alpha
1
2
Traceback (most recent call last):
File "E:\python_work\pitch_system\src\relevance_vector_machine\rvr_train_test1.py", line 50, in
mse_rvr = mean_squared_error(output_2_rvr, output_test)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\regression.py", line 238, in mean_squared_error
y_true, y_pred, multioutput)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\metrics\regression.py", line 76, in _check_reg_targets
y_true = check_array(y_true, ensure_2d=False)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 453, in check_array
_assert_all_finite(array)
File "D:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 44, in _assert_all_finite
" or a value too large for %r." % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
"
How can I deal with it ? Thank you very much!
The text was updated successfully, but these errors were encountered: