Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Lightning CDClassifier does not converge
from lightning.impl.primal_cd import CDClassifier
from lightning.impl.datasets.samples_generator import make_classification
bin_dense, bin_target = make_classification(n_samples=20000, n_features=100, n_informative=5,
n_classes=2, random_state=0, flip_y=0.2)
est = CDClassifier(C=1.0, alpha=0.01, random_state=0, penalty="l2", loss="log", verbose=3, max_iter=100)[:10000,:], bin_target[:10000])
est.score(bin_dense[10000:,:], bin_target[10000:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment