sharkpy.predicting ================== .. py:module:: sharkpy.predicting Functions --------- .. autoapisummary:: sharkpy.predicting.predict sharkpy.predicting.predict_baseline sharkpy.predicting._validate_and_process_input Module Contents --------------- .. py:function:: predict(self, X=None) Make predictions using the trained model. :param X: dict, DataFrame, or array-like, optional Input samples to predict. If None, predicts on training data. Can be: - dict: Single prediction scenario {'feature1': value1, 'feature2': value2} - list of dicts: Multiple scenarios [{'feature1': value1}, {'feature1': value2}] - DataFrame: Multiple samples with feature columns - array-like: Raw feature values :returns: Predicted values :rtype: float, str, or array .. py:function:: predict_baseline(self) Make a baseline prediction with all features at minimum values. :returns: Baseline prediction :rtype: float or str .. py:function:: _validate_and_process_input(self, X) Helper method to validate and process input data