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

Method make_model

models/rfmodel.py:12–14  ·  view source on GitHub ↗
(self, n_estimators, n_jobs, verbose=1)

Source from the content-addressed store, hash-verified

10 self.input_shape = input_shape
11
12 def make_model(self, n_estimators, n_jobs, verbose=1):
13 model1 = RF(n_estimators=1, criterion='entropy', bootstrap=False, class_weight='balanced_subsample')
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected