Closed lemmonation closed 7 years ago
One easy solution is to downgrade the sklearn package:
pip install -U scikit-learn==0.16.1
Of course, you can also do this in virtualenv.
Worked. Thank you! @GTmac
One easy solution is to downgrade the sklearn package:
pip install -U scikit-learn==0.16.1
Of course, you can also do this in virtualenv.
i had tried but getting same error can any one help please My Code is: valid_x_predictions = lstm_autoencoder.predict(valid_x_0) mse = np.mean(np.power(flatten(valid_x_0) - flatten(valid_x_predictions), 2), axis=1)
error_df = pd.DataFrame({'Reconstruction_error': mse, 'True_class': y_valid.tolist()})
precision_rt, recall_rt, threshold_rt = precision_recall_curve(error_df.True_class, error_df.Reconstruction_error) plt.plot(threshold_rt, precision_rt[1:], label="Precision",linewidth=5) plt.plot(threshold_rt, recall_rt[1:], label="Recall",linewidth=5) plt.title('Precision and recall for different threshold values') plt.xlabel('Threshold') plt.ylabel('Precision/Recall') plt.legend() plt.show()
ValueError Traceback (most recent call last)
@syeddanishkazmi how is the error you get related to DeepWalk? Have you tried using MultiLabelBinarizer
?
pip install -U scikit-learn==0.16.1
thank you
I run the
score.py
and get the following bugs:Then I solved this by adding:
But a new bug throws:
The bug occurs may because the sklearn function used in score.py is too old to fit the new version. So now is there any trik to solve this?