MCPcopy Create free account

hub / github.com/linkedin/greykite / functions

Functions2,034 in github.com/linkedin/greykite

↓ 2 callersFunctionfilter_coef_summary
Gets the coefficient summary df after applying the given filters. Set any of the parameters to `bool` to enable filtering. - Any argumen
greykite/algo/common/col_name_utils.py:319
↓ 2 callersMethodfit
Identifies the degenerate columns, and sets ``self.keep_cols`` and ``self.drop_cols``. Parameters ---------- X : `pan
greykite/sklearn/transform/drop_degenerate_transformer.py:54
↓ 2 callersMethodfit
Fits the normalization transform. Parameters ---------- X : `pandas.DataFrame` Training input data. e.g. each col
greykite/sklearn/transform/normalize_transformer.py:87
↓ 2 callersFunctionforecast_one_by_one_fcn
A function which turns a train-forecast function to a function which forecast each horizon by fitting its own corresponding model with the goal
greykite/algo/common/forecast_one_by_one.py:33
↓ 2 callersFunctionforecast_result
(coverage)
greykite/tests/framework/pipeline/test_pipeline.py:1613
↓ 2 callersFunctionfourier_series_fcn
Generates a function which creates fourier series matrix for a column of an input df :param col_name: str is the column name in the datafr
greykite/common/features/timeseries_features.py:1443
↓ 2 callersMethodfrom_dict
(obj: Any)
greykite/framework/templates/autogen/forecast_config.py:276
↓ 2 callersFunctiongenerate_anomalous_data
(periods=10)
greykite/common/testing_utils.py:391
↓ 2 callersFunctiongenerate_df_with_holidays
(freq, periods)
greykite/common/testing_utils.py:171
↓ 2 callersFunctiongenerate_test_changepoint_df
Generates df to test change points The generated df is simple zigzag shaped over time with noise, with user specified frequency, length and n
greykite/common/testing_utils.py:336
↓ 2 callersFunctionget_info_dict_lm
Get the ``info_dict`` dictionary for linear models. A series of functions are used in a flow to get all information needed in linear model su
greykite/algo/common/model_summary_utils.py:1122
↓ 2 callersMethodget_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/silverkite_template.py:477
↓ 2 callersMethodget_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/simple_silverkite_template.py:670
↓ 2 callersFunctionget_logistic_func
Returns a function that evaluates the logistic function at t with the specified growth rate, capacity, floor, and inflection point. f
greykite/common/features/timeseries_features.py:1601
↓ 2 callersMethodget_metric_args
Returns the expected argument list
greykite/common/evaluation.py:954
↓ 2 callersMethodget_pipeline
Returns pipeline. Implementation may be overridden by subclass if a different pipeline is desired. Uses ``self.estimator``,
greykite/framework/templates/base_template.py:158
↓ 2 callersMethodget_regressor_cols
Returns regressor column names from the model components. Currently does not implement regressors.
greykite/framework/templates/auto_arima_template.py:145
↓ 2 callersFunctionget_regularization_strength
Gets the regularization strength. The regularization strength typically won't affect the result too much, if set in a reasonable range (0.4-0
greykite/algo/changepoint/adalasso/auto_changepoint_params.py:266
↓ 2 callersFunctionget_seasonality_changes_from_adaptive_lasso
Parses the adaptive lasso estimator to get change point dates. The functions calls ``adaptive_lasso_cv`` to selected potential seasonality change
greykite/algo/changepoint/adalasso/changepoints_utils.py:1042
↓ 2 callersFunctionget_yearly_seasonality_order
Infers the yearly seasonality order for changepoint detection. Parameters ---------- df : `pandas.DataFrame` The input timeseris.
greykite/algo/changepoint/adalasso/auto_changepoint_params.py:85
↓ 2 callersFunctionlimit_tuple_col
This function applies limits (lower bound and upper bound) to values (could be any value type for which min and max are defined) given in tupl
greykite/algo/uncertainty/conditional/dataframe_utils.py:52
↓ 2 callersMethodload_hierarchical_actuals
Loads hierarchical actuals. This dataset contains synthetic data that satisfy hierarchical constraints. Consider the 3-level tree wit
greykite/common/data_loader.py:600
↓ 2 callersMethodload_hierarchical_forecasts
Loads hierarchical forecasts. This dataset contains forecasts for the actuals given by `~greykite.common.data_loader.DataLoader.load_
greykite/common/data_loader.py:656
↓ 2 callersMethodmerge_anomaly_info
This function combines anomalies information that may exist in various places and combine them into a consistent `anomaly_df`: a point will be
greykite/detection/detector/greykite.py:489
↓ 2 callersFunctionoffset_tuple_col
Takes a dataframe (df) with at least two columns (`offset_col` and `tuple_col`) and offsets all values given in tuple_col using an offset
greykite/algo/uncertainty/conditional/dataframe_utils.py:25
↓ 2 callersMethodplot_components
Makes component plots. Returns ------- figs : `list` [`plotly.graph_objects.Figure` or None] A list of figures fr
greykite/sklearn/estimator/multistage_forecast_estimator.py:1043
↓ 2 callersFunctionplot_overlay_anomalies_multi_metric
This function operates on a given data frame (``df``) which includes time (given in ``time_col``) and metrics (given in ``value_cols``), as well a
greykite/common/viz/timeseries_annotate.py:917
↓ 2 callersFunctionplt_overlay_long_df
Overlay by splitting wrt values of a column (split_col). If some agg metrics (specified by agg_dict) are also desired, we overlay the
greykite/common/viz/timeseries_plotting_mpl.py:145
↓ 2 callersFunctionpprint
Pretty print the dictionary 'params' Copied from sklearn.base._pprint to avoid accessing protected member of module Parameters ---------
greykite/common/logging.py:61
↓ 2 callersMethodpredict
Predicts the interval. Parameters ---------- fut_df : `pandas.DataFrame` The dataframe used for prediction.
greykite/sklearn/uncertainty/simple_conditional_residuals_model.py:218
↓ 2 callersMethodprep_df_for_predict
A method to prepares the data for ``fit``, ``calc_with_param``. Parameters ---------- data : See class attributes. R
greykite/detection/detector/detector.py:261
↓ 2 callersFunctionquantile_fcn
(q)
greykite/common/viz/timeseries_plotting_mpl.py:262
↓ 2 callersFunctionround_as_list
Rounds `split_scores` to the specified `decimals` and returns the result as a list. Parameters ---------- split_score
greykite/framework/utils/result_summary.py:150
↓ 2 callersMethodrun
Runs every config and stores the output of the :func:`~greykite.framework.pipeline.pipeline.forecast_pipeline`. This function runs onl
greykite/framework/benchmark/benchmark_class.py:147
↓ 2 callersFunctionscale_std_quantile_summary_inplace
Scales ``std_col`` and ``quantile_summary_col`` of ``df`` by ``sigma_scaler`` in-place.
greykite/algo/uncertainty/conditional/conf_interval.py:316
↓ 2 callersFunctionshift
Rolls a 1d-array in either direction, and applies a fill value on a portion of the array Parameters ---------- arr : array-like, 1-D
greykite/detection/common/ad_evaluation_utils.py:31
↓ 2 callersFunctionsim_df_func
()
greykite/common/testing_utils_anomalies.py:230
↓ 2 callersMethodsimulate_multi
A function to simulate future series. If the fitted model supports uncertainty e.g. via ``uncertainty_dict``, errors are incorporated
greykite/algo/forecast/silverkite/forecast_silverkite.py:1544
↓ 2 callersMethodsummary
Gets model summaries. Returns ------- summaries : `list` [`~greykite.algo.common.model_summary.ModelSummary` or None]
greykite/sklearn/estimator/multistage_forecast_estimator.py:1062
↓ 2 callersMethodsummary
(self)
greykite/sklearn/estimator/auto_arima_estimator.py:342
↓ 2 callersMethodto_json
Converts an instance of the `ADConfig` class to its json string format.
greykite/detection/detector/config.py:168
↓ 2 callersFunctionvalidate_volatility_features
Removes duplicate values from ``volatility_features_list`` and validates the features against ``valid_features``. Parameters ---------
greykite/detection/detector/ad_utils.py:403
↓ 2 callersFunctionvertical_concat_dfs
For a given set of datarfames with same columns in ``df_dict``, it will concat them vertically by using ``join_cols`` as joining columns.
greykite/detection/detector/ad_utils.py:74
↓ 1 callersMethod__add__
Addition of objects or an object with a number (scalar).
greykite/detection/detector/reward.py:151
↓ 1 callersMethod__apply_forecast_one_by_one_to_pipeline_parameters
If forecast_one_by_one is activated, 1. replaces the estimator with ``OneByOneEstimator`` in pipeline. 2. Adds one by one est
greykite/framework/templates/forecaster.py:222
↓ 1 callersMethod__flatten_estimator_params_list
Flattens the ``estimator_params_list``. The ``estimator_params_list`` is from ``self.__get_estimators_and_params_from_template_configs``,
greykite/framework/templates/multistage_forecast_template.py:455
↓ 1 callersMethod__get_default_autoreg_dict
Generates the autoregressive components for forecasting given the forecast horizon and time frequency. Only if ``forecast_horizon`` i
greykite/algo/forecast/silverkite/forecast_silverkite.py:3115
↓ 1 callersMethod__get_default_lagged_regressor_dict
Generates the lagged regressor components for forecasting given the forecast horizon and time frequency. This applies to ONE lagged re
greykite/algo/forecast/silverkite/forecast_silverkite.py:3226
↓ 1 callersMethod__get_default_model_components
Gets the default model components from a model template name. Parameters ---------- template : `str` The model te
greykite/framework/templates/multistage_forecast_template.py:519
↓ 1 callersMethod__get_estimators_and_params_from_template_configs
Gets the estimators and estimator parameters from ``MultistageForecastTemplateConfig`` objects. Parameters ---------- new_con
greykite/framework/templates/multistage_forecast_template.py:386
↓ 1 callersMethod__get_feature_sets_enabled
Returns default feature sets based on training data frequency and size. Parameters ---------- simple_freq: `str`, default Sim
greykite/algo/forecast/silverkite/forecast_simple_silverkite.py:1090
↓ 1 callersMethod__get_feature_sets_terms
Defines features sets for use in the `extra_pred_cols` parameter to `forecast_silverkite`. Derived from events, seasonality, and trend
greykite/algo/forecast/silverkite/forecast_simple_silverkite.py:1249
↓ 1 callersMethod__get_hyperparameter_grid_from_model_components
Gets the hyperparameter grid from the `ModelComponentsParam` class. Parameters ---------- model_components : `class`
greykite/framework/templates/simple_silverkite_template.py:1248
↓ 1 callersMethod__get_model_components_and_override_from_model_template
Gets the `ModelComponentsParam` class from model template, and overridden by ``model_components``. The template could be a name string, a `Si
greykite/framework/templates/simple_silverkite_template.py:1210
↓ 1 callersMethod__get_model_template
Gets the default model template when "auto" is given. This is called after ``config`` has been filled with the default values and all
greykite/framework/templates/forecaster.py:254
↓ 1 callersMethod__get_multistage_forecast_configs_override
Gets the overriden Multistage Forecast configs by ``custom``. Parameters ---------- custom : `dict` [`str`, any]
greykite/framework/templates/multistage_forecast_template.py:265
↓ 1 callersMethod__get_name_string_from_model_template
Gets the name string(s) from model template. The template could be a name string, a `SimpleSilverkiteTemplateOptions` dataclass, or a
greykite/framework/templates/simple_silverkite_template.py:1032
↓ 1 callersMethod__get_requested_seasonality_order
Returns requested seasonality fourier series order. Parameters ---------- requested_seasonality : `str` or `bool` or `int` o
greykite/algo/forecast/silverkite/forecast_simple_silverkite.py:911
↓ 1 callersMethod__get_silverkite_holidays
Generates holidays dictionary for input to daily_event_df_dict parameter of silverkite model. The main purpose is to provide reasonable defaul
greykite/algo/forecast/silverkite/forecast_simple_silverkite.py:1369
↓ 1 callersMethod__get_silverkite_seasonality
Generates `fs_components_df` parameter for `forecast_silverkite` for modeling seasonality. Parameters ---------- simp
greykite/algo/forecast/silverkite/forecast_simple_silverkite.py:948
↓ 1 callersMethod__get_single_model_components_param_from_template
Gets the `ModelComponentsParam` class from a single simple silverkite template name. Parameters ---------- template : `str`
greykite/framework/templates/simple_silverkite_template.py:1085
↓ 1 callersMethod__get_template_class
Extracts template class (e.g. `SimpleSilverkiteTemplate`) from the config. Parameters ---------- config : :class:`~greykite.f
greykite/framework/templates/forecaster.py:152
↓ 1 callersMethod__init__
( self, value_col, is_anomaly_col=None, reward=None,
greykite/tests/detection/detector/test_detector.py:46
↓ 1 callersMethod__mul__
Multiplication of objects or an object with a number.
greykite/detection/detector/reward.py:166
↓ 1 callersMethod__normalize_changepoint_values
Normalizes the ``changepoint_values`` in `~greykite.algo.forecast.silverkite.SilverkiteForecast.forecast` with the same normalize meth
greykite/algo/forecast/silverkite/forecast_silverkite.py:3322
↓ 1 callersMethod__override_model_components
Uses the values in ``model_components`` to update the corresponding values in ``default_model_components``. If a value is not set in model_co
greykite/framework/templates/simple_silverkite_template.py:1173
↓ 1 callersMethod__remove_fourier_col_with_collinearity
Removes fourier series terms with perfect or almost perfect collinearity. This function is intended to be used when fitting algorithm is OLS.
greykite/algo/forecast/silverkite/forecast_silverkite.py:3363
↓ 1 callersMethod__remove_fourier_col_with_collinearity_and_interaction
Removes interaction terms that include fourier series terms removed in `~greykite.algo.forecast.silverkite.SilverkiteForecast.__remove_fourier
greykite/algo/forecast/silverkite/forecast_silverkite.py:3436
↓ 1 callersMethod__repr__
(self)
greykite/sklearn/sklearn_scorer.py:92
↓ 1 callersMethod__set_constraint_matrix
Constructs constraint matrix that requires each parent nodes's value to be the sum of its leaf nodes' values. Returns -------
greykite/algo/reconcile/hierarchical_relationship.py:335
↓ 1 callersMethod__set_leaf_projection_matrix
Constructs leaf projection matrix. Returns ------- leaf_projection_matrix : `numpy.array`, shape (``self.num_leaf_nodes``, ``
greykite/algo/reconcile/hierarchical_relationship.py:322
↓ 1 callersMethod__set_sum_matrix
Constructs the summing matrix. Returns ------- sum_matrix : `numpy.array`, shape (``self.num_nodes``, ``self.num_leaf_nodes``
greykite/algo/reconcile/hierarchical_relationship.py:275
↓ 1 callersMethod__set_uncertainty_dict
Checks if ``coverage`` is consistent with the ``uncertainty_dict`` used to train the ``forecast_silverkite`` model. Sets ``uncertainty_dict``
greykite/sklearn/estimator/base_silverkite_estimator.py:211
↓ 1 callersMethod__template_name_from_dataclass
Decodes the string format single template name from the ``name_dataclass`` dataclass. Parameters ---------- name_dataclass :
greykite/framework/templates/simple_silverkite_template.py:862
↓ 1 callersMethod_check_input
Checks that necessary input are provided in ``self.uncertainty_dict`` and ``self.train_df``. To be called after setting ``self.train_df`` in `
greykite/sklearn/uncertainty/base_uncertainty_model.py:84
↓ 1 callersMethod_check_input
Preprocesses the input design matrix, the response vector, l1_index, l2_index and constant columns. Parameters ---------- x :
greykite/algo/common/partial_regularize_regression.py:200
↓ 1 callersMethod_check_input
Preprocesses the input design matrix, the response vector, l1_index, l2_index and constant columns. Parameters ---------- x :
greykite/algo/common/partial_regularize_regression.py:443
↓ 1 callersMethod_check_pos_label
(pos_label, classes)
greykite/sklearn/sklearn_scorer.py:59
↓ 1 callersMethod_deserialize_class
Deserializes a class. Parameters ---------- serialized_dict: `dict` The serialized dictionary. obj_type:
greykite/detection/common/pickler.py:537
↓ 1 callersMethod_deserialize_dict
Deserializes a dictionary. Parameters ---------- serialized_dict: `dict` The serialized dictionary. obj_t
greykite/detection/common/pickler.py:454
↓ 1 callersMethod_deserialize_list_tuple
Deserializes a list or a tuple. Parameters ---------- serialized_dict: `dict` The serialized dictionary.
greykite/detection/common/pickler.py:503
↓ 1 callersMethod_deserialize_ordered_dict
Deserializes an ordered dictionary. Parameters ---------- serialized_dict: `dict` The serialized dictionary.
greykite/detection/common/pickler.py:403
↓ 1 callersMethod_deserialize_root
Deserializes the root object. This is the very top level of the nested `serialized_dict`. Thus, it either contains a single .pkl file
greykite/detection/common/pickler.py:371
↓ 1 callersMethod_factory_args
Return non-default make_scorer arguments for repr.
greykite/sklearn/sklearn_scorer.py:121
↓ 1 callersMethod_fit_analytic
Fits the regression problem with a single L2 norm regularization parameter and cross validation over many L1 norm regularization parameters.
greykite/algo/common/partial_regularize_regression.py:495
↓ 1 callersMethod_fit_uncertainty
Fits the uncertainty model.
greykite/sklearn/estimator/multistage_forecast_estimator.py:1020
↓ 1 callersMethod_get_alphas
Gets the Lasso alpha grid. Parameters ---------- x : `numpy.array` The design matrix. y : `numpy.array`
greykite/algo/common/partial_regularize_regression.py:594
↓ 1 callersMethod_get_candidate_holidays
Gets the candidate holidays from a list of countries. Uses `pypi:holidays-ext`. Duplicates are dropped. Observed holidays are
greykite/algo/common/holiday_inferrer.py:368
↓ 1 callersMethod_get_estimators
Gets the estimators for forecast one-by-one. If the given parameters indicate that multiple estimators are need for the forecast one-
greykite/sklearn/estimator/one_by_one_estimator.py:240
↓ 1 callersMethod_get_lasso_input
Computes the transformed lasso input quantities. Parameters ---------- x : `numpy.array` The design matrix.
greykite/algo/common/partial_regularize_regression.py:250
↓ 1 callersMethod_get_n_rounds
Gets the number of rounds of predictions needed. For example, when the prediction is 3 weeks while the lag is 1 week, it will need to
greykite/sklearn/estimator/lag_based_estimator.py:465
↓ 1 callersMethod_get_score_for_dates
Gets the score for each day in ``event_dates``. The score is defined as the observation on the day minus the baseline, which is the av
greykite/algo/common/holiday_inferrer.py:475
↓ 1 callersMethod_get_significant_holidays
Classifies holidays into model independently, model together and do not model according to their scores. Returns -------
greykite/algo/common/holiday_inferrer.py:558
↓ 1 callersMethod_get_summary
Gets the model summary from input. This function is called during initialization. Returns ------- info_dict : `dict`
greykite/algo/common/model_summary.py:102
↓ 1 callersMethod_gets_seasonality_fitting_metrics
Fits the seasonality with Fourier series and find the best order according to a criterion. Parameters ---------- df : `pandas
greykite/algo/common/seasonality_inferrer.py:650
↓ 1 callersMethod_infer_holidays
When the scores are computed, calculates the contributions and classifies holidays into: - model independently - mode
greykite/algo/common/holiday_inferrer.py:333
↓ 1 callersMethod_make_plot
Makes a figure that contains 2-3 subplots. The subplots are: - AIC/BIC vs. Fourier series orders. - De-trended and ag
greykite/algo/common/seasonality_inferrer.py:841
↓ 1 callersMethod_plot
Makes a plot that includes the following two subplots: - Bar chart for holiday effects grouped by holidays ordered by their holiday effec
greykite/algo/common/holiday_inferrer.py:608
↓ 1 callersMethod_predict
The prediction function. Parameters ---------- df : `pandas.DataFrame` The input dataframe, covering the predicti
greykite/sklearn/estimator/multistage_forecast_estimator.py:963
↓ 1 callersMethod_prepare_df
Processes the training data. Including appending ``past_df``, interpolation, etc. Returns ------- This function modifies clas
greykite/sklearn/estimator/lag_based_estimator.py:302
← previousnext →501–600 of 2,034, ranked by callers