MCPcopy Create free account
hub / github.com/VivekPa/AIAlpha / train_model

Method train_model

models/rfmodel.py:16–17  ·  view source on GitHub ↗
(self, x, y, sample_weights=None)

Source from the content-addressed store, hash-verified

14 self.model = BC(base_estimator=model1, n_estimators=n_estimators, max_features=1., verbose=verbose)
15
16 def train_model(self, x, y, sample_weights=None):
17 self.model.fit(x, y, sample_weight=sample_weights)
18
19 def test_model(self, x, y, sample_weights=None):
20 # model_acc = self.model.score(x, y, sample_weight=sample_weights)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected