Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 39: Resolve issue with execute_model function #40

Merged
merged 2 commits into from
May 29, 2019
Merged
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
8 changes: 4 additions & 4 deletions cardea/cardea.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def generate_features(self, cutoff):

def execute_model(self, feature_matrix, target, primitives,
optimize=False, hyperparameters=None):
"""Executes and predict all the pipelines.
"""Executes and predicts all of the pipelines.

This method executes the given pipeline and returns a list for all the pipelines
with the result of each fold with its associated predicted values and actual values.
Expand All @@ -171,7 +171,7 @@ def execute_model(self, feature_matrix, target, primitives,
data_frame: A dataframe, which encapsulates all the records of that entity.
primitives_list: A list of the primitives within a pipeline.
optimize: A boolean value which indicates whether to optimize the model or not.
hyperparameters: A dictionary of hyperparameters for each primitives.
hyperparameters: A dictionary of hyperparameters for each primitive.

Returns:
A list for all the executed pipelines and its result.
Expand All @@ -182,8 +182,8 @@ def execute_model(self, feature_matrix, target, primitives,
target=target,
primitives_list=primitives,
problem_type=self.chosen_problem.prediction_type,
optimize=False,
hyperparameters=None
optimize=optimize,
hyperparameters=hyperparameters
)

def convert_to_json(dic):
Expand Down