Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/linkedin/greykite
/ functions
Functions
2,034 in github.com/linkedin/greykite
⨍
Functions
2,034
◇
Types & classes
151
↳
Endpoints
13
↓ 1 callers
Method
_process_input
Checks validity of input. Parameters ---------- x : `numpy.array`, `pandas.DataFrame` or `pandas.Series` The desi
greykite/algo/common/l1_quantile_regression.py:243
↓ 1 callers
Method
_prune_holiday_by_score
Removes events that have too few datapoints or inconsistent / negligible scores given ``score_result`` and ``score_result_avg``. Para
greykite/algo/common/holiday_grouper.py:710
↓ 1 callers
Method
_serialize_class
Pickles a class when it can not be directly pickled by `dill`. Generates a dictionary with two keys. - {`obj_name`}.type stores t
greykite/detection/common/pickler.py:326
↓ 1 callers
Method
_serialize_dict
Pickles a dictionary when it can not be directly pickled by `dill`. Generates a dictionary with two keys. - {`obj_name`}.type sto
greykite/detection/common/pickler.py:234
↓ 1 callers
Method
_serialize_list_tuple
Serializes a list or a tuple, preserving its order, when it can not be directly pickled by `dill`. Generates a dictionary with two keys.
greykite/detection/common/pickler.py:284
↓ 1 callers
Method
_serialize_ordered_dict
Pickles an ordered dictionary when it can not be directly pickled by `dill`. Generates a dictionary with two keys. - {`obj_name`}
greykite/detection/common/pickler.py:186
↓ 1 callers
Method
_train
Trains the Multistage Forecast model with the given configurations. Parameters ---------- df : `pandas.DataFrame`
greykite/sklearn/estimator/multistage_forecast_estimator.py:836
↓ 1 callers
Method
_validate_params
Validates model parameters. This function checks the following class attributes: - self.lag_unit - self.lags
greykite/sklearn/estimator/lag_based_estimator.py:251
↓ 1 callers
Function
_verify_intervals
(intervals)
greykite/common/testing_utils.py:565
↓ 1 callers
Function
_verify_level_shifts
(level_shift_starts, level_shift_ends)
greykite/common/testing_utils.py:574
↓ 1 callers
Function
add_anomaly_cols_one_metric
This function adds the new anomaly columns for each metric. This will be applied to ``df`` once for each metric below. Parameters
greykite/common/features/adjust_anomalous_data.py:372
↓ 1 callers
Function
add_beta_var_lm
Adds the covariance matrix for estimated coefficients to `info_dict` for linear models. The covariance matrix for estimated coefficients is defin
greykite/algo/common/model_summary_utils.py:465
↓ 1 callers
Method
add_features_one_df
Adds features to one joined dataframe. This will be used to add features to all joined dataframes. Classes inherting from this class c
greykite/detection/detector/forecast_based.py:139
↓ 1 callers
Function
add_model_coef_df_lm
Adds the tests and confidence intervals for estimated coefficients to `info_dict` for linear models. Only tests and confidence intervals i
greykite/algo/common/model_summary_utils.py:1012
↓ 1 callers
Function
add_model_coef_df_tree
Adds coefficient summary df to `info_dict` for tree models. Only coefficient summary information will be added in this function. A series of
greykite/algo/common/model_summary_utils.py:1403
↓ 1 callers
Function
add_model_df_lm
Adds degrees of freedom of the regression model to ``info_dict`` for linear models. The df is defined as the trace of hat matrix. In general, we
greykite/algo/common/model_summary_utils.py:325
↓ 1 callers
Function
add_model_params_lm
Adds model parameter information to ``info_dict`` for linear models. Only model-related information will be added in this function. A series
greykite/algo/common/model_summary_utils.py:225
↓ 1 callers
Function
add_model_params_tree
Adds model parameters to `info_dict` for tree models. Only model-related parameter information will be added in this function. A series of th
greykite/algo/common/model_summary_utils.py:1343
↓ 1 callers
Function
add_model_significance_lm
Adds model significance metrics to `info_dict` for linear models. Only model significance metrics information will be added in this function.
greykite/algo/common/model_summary_utils.py:1060
↓ 1 callers
Function
add_model_ss_lm
Adds model sum of squared errors to ``info_dict`` for linear models. Only sum of squared error information will be added in this function. A
greykite/algo/common/model_summary_utils.py:409
↓ 1 callers
Function
add_new_param_values
(name, values, records)
greykite/detection/detector/ad_utils.py:155
↓ 1 callers
Function
add_periods_dummy_column_for_one_group
This function will add a dummy column for the time periods of each group to the ``labels_df``. Parameters ---------- labels_df
greykite/common/viz/timeseries_annotate.py:665
↓ 1 callers
Function
add_shifted_events
This function does two things: - (1) adds shifted events to ``daily_event_df_dict`` and returns the new event dictionary. - (2) retur
greykite/algo/common/holiday_utils.py:141
↓ 1 callers
Method
apply_auto_arima_model_components_defaults
Sets default values for ``model_components``. Parameters ---------- model_components : :class:`~greykite.framework.templates.
greykite/framework/templates/auto_arima_template.py:152
↓ 1 callers
Method
apply_computation_defaults
Applies the default ComputationParam values to the given object. If an expected attribute value is provided, the value is unchanged. Otherwise
greykite/framework/templates/forecast_config_defaults.py:66
↓ 1 callers
Method
apply_evaluation_metric_defaults
Applies the default EvaluationMetricParam values to the given object. If an expected attribute value is provided, the value is unchanged. Othe
greykite/framework/templates/forecast_config_defaults.py:91
↓ 1 callers
Method
apply_evaluation_period_defaults
Applies the default EvaluationPeriodParam values to the given object. If an expected attribute value is provided, the value is unchanged. Othe
greykite/framework/templates/forecast_config_defaults.py:117
↓ 1 callers
Method
apply_metadata_defaults
Applies the default MetadataParam values to the given object. If an expected attribute value is provided, the value is unchanged. Otherwise th
greykite/framework/templates/forecast_config_defaults.py:145
↓ 1 callers
Method
apply_prophet_model_components_defaults
Sets default values for ``model_components``. Called by ``get_hyperparameter_grid`` after ``time_properties` is defined. Requires ``t
greykite/framework/templates/prophet_template.py:323
↓ 1 callers
Function
assert_forecast_config
Asserts the forecast config values. This function expects a particular config and is not generic
greykite/tests/framework/templates/test_forecast_config.py:93
↓ 1 callers
Function
assert_forecast_config_json
Asserts the forecast config values. This function expects a particular config and is not generic
greykite/tests/framework/templates/test_forecast_config.py:175
↓ 1 callers
Function
assert_forecast_config_json_multiple_model_components_parameter
Asserts the forecast config values. This function expects a particular config and is not generic
greykite/tests/framework/templates/test_forecast_config.py:290
↓ 1 callers
Function
assert_forecast_pipeline_result_equal
Raises an AssertionError if the two forecast pipeline results are not equal
greykite/framework/utils/framework_testing_utils.py:371
↓ 1 callers
Method
calc_with_param
It assigns anomaly label to any points which has a larger mape than the threshold. Parameters ---------- data : See c
greykite/detection/detector/ape_based.py:115
↓ 1 callers
Method
check_holiday_group
Prints out the holiday groups that contain holidays matching ``holiday_name_pattern`` and their scores. The searching is limited to the given
greykite/algo/common/holiday_grouper.py:665
↓ 1 callers
Method
check_scores
Spot checks the score of certain holidays containing pattern ``holiday_name_pattern``. Prints out the dates, individual day scores of all occu
greykite/algo/common/holiday_grouper.py:612
↓ 1 callers
Method
compute_evaluation_metrics_split
Computes __evaluation_metrics for train and test set separately. :return: dictionary with train and test evaluation metrics
greykite/framework/output/univariate_forecast.py:229
↓ 1 callers
Function
confusion_matrix
Computes the confusion matrix for two arrays. Parameters ---------- y_true : array-like, 1-D The actual categories. y_pred :
greykite/detection/common/ad_evaluation.py:287
↓ 1 callers
Function
create_coef_df_section
Creates the coefficient summary df section for model summary. Parameters ---------- info_dict : `dict` The dictionary returned by
greykite/algo/common/model_summary_utils.py:1722
↓ 1 callers
Function
create_info_dict_lm
Creates a information dictionary for linear model results. Only basic information will be created in this function. A series of these functio
greykite/algo/common/model_summary_utils.py:133
↓ 1 callers
Function
create_info_dict_tree
Creates a information dictionary for tree model results. Only basic information will be created in this function. A series of these functions
greykite/algo/common/model_summary_utils.py:1267
↓ 1 callers
Function
create_model_parameter_section
Creates the model parameter section for model summary. Parameters ---------- info_dict : `dict` The dictionary returned by
greykite/algo/common/model_summary_utils.py:1646
↓ 1 callers
Function
create_residual_section
Creates the residual section for model summary. Parameters ---------- info_dict : `dict` The dictionary returned by `~gre
greykite/algo/common/model_summary_utils.py:1698
↓ 1 callers
Function
create_significance_section
Creates the model sifnificance section for model summary. Parameters ---------- info_dict : `dict` The dictionary returned by
greykite/algo/common/model_summary_utils.py:1751
↓ 1 callers
Function
create_title_section
Creates the title section for model summary. Returns ------- content : `str` Title section.
greykite/algo/common/model_summary_utils.py:1634
↓ 1 callers
Function
create_warning_section
Creates the warning section for model summary. The following warnings are possible to be included: Condition number is too big.
greykite/algo/common/model_summary_utils.py:1787
↓ 1 callers
Function
cross_validate_one_model
Runs cross validation for one algo, data pair.
greykite/tests/algo/forecast/silverkite/test_forecast_silverkite.py:2563
↓ 1 callers
Method
detect_logic
This is an abstract method to be implemented by children of this base class. Parameters ---------- y_new : `pandas.series`
greykite/common/features/outlier.py:385
↓ 1 callers
Function
dummy_fit_func
( self, forecasts, actuals, **params)
greykite/tests/algo/reconcile/convex/test_reconcile_forecasts.py:148
↓ 1 callers
Method
estimator
The estimator instance to use as the final step in the pipeline. An instance of `greykite.sklearn.estimator.base_forecast_estimator.BaseForeca
greykite/framework/templates/base_template.py:108
↓ 1 callers
Function
figure_rst
Generate RST for a list of image filenames. Depending on whether we have one or more figures, we use a single rst call to 'image' or a horizon
greykite/common/sphinx_plotly.py:156
↓ 1 callers
Function
find_min_max_of_block
Given a list of indices, with some of them being consecutive, find the start and end of each block. Indices are considered to be in the same b
greykite/algo/changepoint/shift_detection/shift_detector.py:58
↓ 1 callers
Method
fit
Fits a model to training data Also fits the null model, if specified, for use in evaluating the `score` function Every subclass must
greykite/sklearn/estimator/base_forecast_estimator.py:108
↓ 1 callers
Method
fit
Fits the uncertainty model. Parameters ---------- train_df : `pandas.DataFrame` The training data.
greykite/sklearn/uncertainty/base_uncertainty_model.py:119
↓ 1 callers
Method
fit
Fits the uncertainty model. Parameters ---------- train_df : `pandas.DataFrame` The data used to fit the uncertai
greykite/sklearn/uncertainty/simple_conditional_residuals_model.py:191
↓ 1 callers
Method
fit
Parameters ---------- data : `~greykite.detection.detector.ForecastDetectorData` Object including the data.
greykite/detection/detector/best_forecast.py:87
↓ 1 callers
Method
fit
( self, data)
greykite/tests/detection/detector/test_detector.py:158
↓ 1 callers
Function
fit_forecast
Fits a forecast and calculates cross validation errors for a given data set and ``fit_algorithm``. It returns a tuple: (Test MAPE, Fea
greykite/tests/framework/templates/test_simple_silverkite_template.py:3703
↓ 1 callers
Function
fit_forecast
Fits a daily model for this use case. The daily model is a generic silverkite model with regressors.
docs/nbpages/quickstart/02_interpretability/0200_interpretability.py:106
↓ 1 callers
Method
fit_logic
This is an abstract method to be implemented by children of this base class. This logic is to be applied to `y_ready_to_fit` and it will updat
greykite/common/features/outlier.py:364
↓ 1 callers
Function
forecast_kth_time
Returns the kth time period forecast. Parameters ---------- k : `int` The time period for which w
greykite/algo/common/forecast_one_by_one.py:116
↓ 1 callers
Function
from_list_str
(x: Any)
greykite/framework/templates/autogen/forecast_config.py:75
↓ 1 callers
Function
func2
(a, b, c=1)
greykite/tests/common/test_python_utils.py:927
↓ 1 callers
Function
generate_df_with_anomalies_sim_based
Generates a time series data frame by simulation and estimates quantiles by simulation and annotates the former with outliers :param freq:
greykite/common/testing_utils_anomalies.py:146
↓ 1 callers
Function
generate_df_with_arbitrary_trends_and_shifts
Generates a Pandas DataFrame that represents time series data with arbitrary trends and level shifts. Example Usage: Calling `generate_df_with_arb
greykite/common/testing_utils.py:506
↓ 1 callers
Function
get_autoreg_holiday_interactions
Gets the interaction terms between holidays and autoregression terms or other lag terms. Parameters ---------- daily_event_df_dict : `Dic
greykite/algo/common/holiday_utils.py:116
↓ 1 callers
Function
get_available_holidays_in_countries
Returns a dictionary mapping each country to its holidays between the years specified. :param countries: List[str] countries for
greykite/common/features/timeseries_features.py:668
↓ 1 callers
Method
get_child_nodes
Returns the indices of a node's children in the tree. Parameters ---------- node : `int` Index of the node.
greykite/algo/reconcile/hierarchical_relationship.py:257
↓ 1 callers
Function
get_compare_df_row
Calculates comparison df with actuals and forecasted for the given horizon, using the training data up to time ``m`` ----------
greykite/common/gen_moving_timeseries_forecast.py:144
↓ 1 callers
Function
get_default_benchmark_parameters
Default parameter sets for benchmarking
greykite/framework/benchmark/benchmark_template.py:150
↓ 1 callers
Function
get_default_benchmark_real_datasets
Default parameter sets to framework.benchmark real datasets. The datasets are located in data folder. Every tuple has the following structure:
greykite/framework/benchmark/benchmark_template.py:128
↓ 1 callers
Function
get_default_benchmark_silverkite_parameters
Default parameter sets for benchmarking silverkite template
greykite/framework/benchmark/benchmark_template.py:142
↓ 1 callers
Function
get_default_benchmark_simulated_datasets
Default parameter sets to generate simulated data for benchmarking. The training periods and forecast horizon are chosen to complement default rea
greykite/framework/benchmark/benchmark_template.py:161
↓ 1 callers
Function
get_elasticnet_coef_df
Gets the coefficients dataframe for Elastic Net regression models. Currently only returns the predictor names and their corresponding estimat
greykite/algo/common/model_summary_utils.py:985
↓ 1 callers
Function
get_eu_dst_end
For each year, it returns the last Sunday in October, which is the end of the daylight saving (DST) in Europe. We assume Europe DST ends on l
greykite/common/features/timeseries_features.py:224
↓ 1 callers
Function
get_eu_dst_start
For each year, it returns the last Sunday in March, which is the start of the daylight saving (DST) in Europe. We assume Europe DST starts on
greykite/common/features/timeseries_features.py:195
↓ 1 callers
Function
get_glm_coef_df
Gets the coefficients dataframe for generalized linear models. The dataframe includes the estimated values, the standard errors, the Z-test v
greykite/algo/common/model_summary_utils.py:580
↓ 1 callers
Method
get_holiday_scores
Computes the score of all holiday events and their neighboring days in ``self.expanded_holiday_df``, by comparing their observed values with a
greykite/algo/common/holiday_grouper.py:527
↓ 1 callers
Method
get_hyperparameter_grid
Returns hyperparameter grid. Implements the method in `~greykite.framework.templates.base_template.BaseTemplate`. Uses ``self.time_p
greykite/framework/templates/auto_arima_template.py:234
↓ 1 callers
Method
get_hyperparameter_grid
Returns hyperparameter grid. Implements the method in `~greykite.framework.templates.base_template.BaseTemplate`. Uses ``self.config
greykite/framework/templates/lag_based_template.py:138
↓ 1 callers
Method
get_hyperparameter_grid
Returns hyperparameter grid. To be implemented by subclass. Available parameters: - self.df - self.config
greykite/framework/templates/base_template.py:244
↓ 1 callers
Method
get_hyperparameter_grid
(self)
greykite/tests/framework/templates/test_base_template.py:71
↓ 1 callers
Function
get_info_dict_tree
Get the ``info_dict`` dictionary for tree models. A series of functions are used in a flow to get all information needed in tree model summar
greykite/algo/common/model_summary_utils.py:1450
↓ 1 callers
Method
get_lagged_regressor_info
Returns lagged regressor column names and minimal/maximal lag order. The lag order can be used to check potential imputation in the computatio
greykite/framework/templates/base_template.py:134
↓ 1 callers
Method
get_lagged_regressor_info
Gets the lagged regressor info for the model Iterates over each submodel to extract the lagged regressor info. Returns -----
greykite/framework/templates/multistage_forecast_template.py:126
↓ 1 callers
Function
get_lasso_coef_by_single_sample_split
Gets the lasso coefficients' and metrics on a single sample-splitting. Randomly splits the data into two parts of equal size. Performs the same
greykite/algo/common/model_summary_utils.py:786
↓ 1 callers
Function
get_lasso_coef_df
Gets the coefficients dataframe for lasso regression models. The dataframe includes the estimated values, the probability a coefficient is nonzer
greykite/algo/common/model_summary_utils.py:958
↓ 1 callers
Function
get_lasso_coef_df_by_multi_sample_split
Gets the lasso coefficients' p-values and confidence intervals by multi sample-splitting. Repeats the single sample-splitting in `~greykite.a
greykite/algo/common/model_summary_utils.py:846
↓ 1 callers
Method
get_level_of_node
Returns a node's level in the tree. Level is defined as the length of the path to the root. The root is at level 0. Parameter
greykite/algo/reconcile/hierarchical_relationship.py:240
↓ 1 callers
Function
get_ls_coef_df
Gets the coefficients dataframe for least squared models. The dataframe includes the estimated values, the standard errors, the t-test values
greykite/algo/common/model_summary_utils.py:522
↓ 1 callers
Function
get_neighbor_days_func
(date)
greykite/common/features/timeseries_features.py:806
↓ 1 callers
Method
get_regressor_cols
Returns regressor column names from the model components. LagBasedTemplate does not support regressors.
greykite/framework/templates/lag_based_template.py:68
↓ 1 callers
Method
get_regressor_cols
Returns regressor column names. To be implemented by subclass. Available parameters: - self.df - self.confi
greykite/framework/templates/base_template.py:115
↓ 1 callers
Method
get_regressor_cols
Gets the regressor columns in the model. Iterates over each submodel to extract the regressor columns. Returns -------
greykite/framework/templates/multistage_forecast_template.py:102
↓ 1 callers
Function
get_ridge_coef_df
Gets the coefficients dataframe for ridge regression models. The dataframe includes the estimated values, the standard errors, the significan
greykite/algo/common/model_summary_utils.py:753
↓ 1 callers
Function
get_ridge_summary_df_by_bootstrap
Gets the ridge regression coefficients p-values and confidence intervals. The tests and confidence intervals are bootstrap p-values and confidenc
greykite/algo/common/model_summary_utils.py:675
↓ 1 callers
Method
get_silverkite_column
Return the SilverkiteColumn constants
greykite/algo/forecast/silverkite/constants/silverkite_column.py:64
↓ 1 callers
Method
get_silverkite_components_enum
Return the SilverkiteComponentsEnum constants
greykite/algo/forecast/silverkite/constants/silverkite_component.py:67
↓ 1 callers
Method
get_silverkite_holiday
Return the SilverkiteHoliday constants
greykite/tests/framework/templates/test_simple_silverkite_template.py:103
↓ 1 callers
Method
get_silverkite_holiday
Return the SilverkiteHoliday constants
greykite/algo/forecast/silverkite/constants/silverkite_holiday.py:68
← previous
next →
601–700 of 2,034, ranked by callers