Is there a dark mode for Catboost fitting plot?

Question:

It seems there is no darkmode easily accessible for catboost fitting plot.
The documentation does not seem to contain anything on the subject.

I am running my Jupyter Notebook into VS code and I am using these lines to get dark modes with seaborn and matplotlib:

import seaborn as sns
import matplotlib.pyplot as plt

sns.set(style="darkgrid", context="talk")
plt.style.use("dark_background")
plt.rcParams.update({"grid.linewidth":0.5, "grid.alpha":0.5})

I have look briefly at the source code of their widget but couldn’t find the attribute that defines the background color.

from catboost import CatBoostRegressor, Pool

train_dataset = Pool(X_train,y_train)
test_dataset  = Pool(X_test,y_test)

model = CatBoostRegressor()
model.fit(
    X=train_dataset,
    eval_set=test_dataset,
    plot=True
)

What can I do to have darkplots here?

Asked By: Kkameleon

||

Answers:

No, there is no dark mode specifically for catboost. Giving a look at their Docs it is evident that currently they have no support for dark modes.

Answered By: The Myth

A workaround is to add the following code to a Jupyter cell:

%%html
<style>
.catboost {
    color: white;
    background-color: black;
}

.catboost .main-svg {
    filter: invert(1);
}
</style>
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.