Skip to content

Commit

Permalink
Update data argument in predict function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander März committed Jul 20, 2023
1 parent 5d29ac6 commit a098e1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightgbmlss/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def objective(trial):
return opt_param.params

def predict(self,
test_set: pd.DataFrame,
data: pd.DataFrame,
pred_type: str = "parameters",
n_samples: int = 1000,
quantiles: list = [0.1, 0.5, 0.9],
Expand All @@ -449,8 +449,8 @@ def predict(self,
Arguments
---------
test_set : pd.DataFrame
Test data.
data : pd.DataFrame
Data to predict from.
pred_type : str
Type of prediction:
- "samples" draws n_samples from the predicted distribution.
Expand All @@ -472,7 +472,7 @@ def predict(self,

# Predict
predt_df = self.dist.predict_dist(booster=self.booster,
test_set=test_set,
data=data,
start_values=self.start_values,
pred_type=pred_type,
n_samples=n_samples,
Expand Down

0 comments on commit a098e1d

Please sign in to comment.