Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test_code2
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ class learning_data_inividual_protein_data(protein_data):

def RandomForest(self):
x_train, x_test, y_train, y_test = self.test_train()
forest = RandomForestRegressor(n_estimators=1000,criterion='mse',max_depth=10,random_state=1,n_jobs=-1)
#In every instance in which the class RandomForest is defined we need to modify the criterion. mse is not an acceptable option.
#choice of: {'poisson', 'friedman_mse', 'absolute_error', 'squared_error'}
forest = RandomForestRegressor(n_estimators=1000,criterion='squared_error',max_depth=10,random_state=1,n_jobs=-1)
forest.fit(x_train, y_train)
return forest

Expand Down