yellowbrick

Yellowbrick Module NotFoundError in Python

偶尔善良 提交于 2021-02-11 15:08:42
问题 I am trying to using Yellowbrick to make an elbow plot.(to make the k-means clustering) I have installed Yellowbrick in jupyter notebook. but, it keeps returning the error message like below. The error message and information are attached as pictures below. I would be very happy if you could help me. from yellowbrick.cluster import KElbowVisualizer model = KMeans() visualizer = KElbowVisualizer(model, k=(1,250)) visualizer.fit(x.reshape(-1,1)) ModuleNotFoundError Traceback (most recent call

Plot Learning Curve of CatBoostClassifier with Yellowbrick

不羁的心 提交于 2020-12-15 06:50:54
问题 I'm trying to plot a learning curve for the CatBoostClassifier. The error occurs when I fit the CatBoostClassifier into LearningCurve from yellowbrick. I think this should work since CatBoost is sklearn compatible and yellow brick is a sklearn extension. Code snippet: kf = RepeatedStratifiedKFold(n_splits=10, n_repeats=3, random_state=0) sizes = np.linspace(0.2, 1.0, 10) estimator = CatBoostClassifier( iterations=42, learning_rate=0.3, max_depth=10) visualizer = LearningCurve( estimator, cv

Yellowbrick: Increasing font size on Yellowbrick generated charts

百般思念 提交于 2019-12-07 13:49:20
问题 Is there a way to increase the font size on Yellowbrick generated charts? I find it difficult to read the text. I wasn't able to find anything on it in the documentation. I'm using Python 3.6, Yellowbrick 0.5 in a Jupyter Notebook. 回答1: Yellowbrick wraps matplotlib in order to produce visualizations, so you can influence all the visual settings for the figure by making calls directly to matplotlib. I find that the easiest way to do that is by getting access to the Visualizer.ax property and