cnellington / Contextualized

An SKLearn-style toolbox for estimating and analyzing models, distributions, and functions with context-specific parameters.
http://contextualized.ml/
GNU General Public License v3.0
65 stars 9 forks source link

Easy networks validation splitting keyword #158

Closed blengerich closed 1 year ago

cnellington commented 1 year ago

Reproducable with for v0.2.4

import numpy as np
from contextualized.easy import ContextualizedCorrelationNetworks
C_train = np.random.normal(0, 1, (100, 20))
X_train = np.random.normal(0, 1, (100, 20))
model = ContextualizedCorrelationNetworks(**model_kwargs)
model.fit(C_train, X_train, val_split=.5)

Pre-training kwarg validation gives "Received unknown keyword argument val_split, probably ignoring."

blengerich commented 1 year ago

Fix in #161