docstr: Naive Mean Model
  
  This model has no parameter, and always predicts the
  mean value of the training series.
  
  Examples
  --------
  >>> from darts.datasets import AirPassengersDataset
  >>> from darts.models import NaiveMean
  >>> series = AirPassengersDataset().load()
  >>> model = NaiveMean()
  >>> model.fit(series)
  >>> pred = model.predict(6)
  >>> pred.values()
  array([[280.29861111],
        [280.29861111],
        [280.29861111],
        [280.29861111],
        [280.29861111],
        [280.29861111]])
docstr_tok: ["Naive","Mean","Model","This","model","has","no","parameter",",","and","always","predicts","the","mean","value","of","the","training","series",".","Examples","--","--","--","--",">",">",">","from","darts.datasets","import","AirPassengersDataset",">",">",">","from","darts.models","import","NaiveMean",">",">",">","series","=","AirPassengersDataset","(",")",".load","(",")",">",">",">","model","=","NaiveMean","(",")",">",">",">","model.fit","(","series",")",">",">",">","pred","=","model.predict","(","6",")",">",">",">","pred.values","(",")","array","(","[","[","280.29861111","]",",","[","280.29861111","]",",","[","280.29861111","]",",","[","280.29861111","]",",","[","280.29861111","]",",","[","280.29861111","]","]",")"]
code: def __init__(self):
      """Naive Mean Model
  
      This model has no parameter, and always predicts the
      mean value of the training series.
  
      Examples
      --------
      >>> from darts.datasets import AirPassengersDataset
      >>> from darts.models import NaiveMean
      >>> series = AirPassengersDataset().load()
      >>> model = NaiveMean()
      >>> model.fit(series)
      >>> pred = model.predict(6)
      >>> pred.values()
      array([[280.29861111],
            [280.29861111],
            [280.29861111],
            [280.29861111],
            [280.29861111],
            [280.29861111]])
      """
      super().__init__()
      self.mean_val = None
  
imports: from typing import List, Optional, Sequence, Union
  import numpy
  from darts.logging import get_logger, raise_if, raise_if_not
  from darts.models.forecasting.ensemble_model import EnsembleModel
  from darts.models.forecasting.forecasting_model import ForecastingModel, LocalForecastingModel
  from darts.timeseries import TimeSeries
label_desc: Use image node_id 1 to create a new NaiveMean object from inherited base classes: LocalForecastingModel with example: obj = NaiveMean()