class ExposedModel(Codable, SerializableType): (source)
Known subclasses: aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModel
Constructors: ExposedModel.in_memory_mlflow(model_name, model_alias, reference_tag, mlflow_config), ExposedModel.mlflow_server(host, model_alias, model_name, timeout), ExposedModel.ollama_embedding(endpoint, model, input_features_versions, prompt_template, embedding_name, ...), ExposedModel.ollama_generate(endpoint, model, prompt_template, input_features_versions), ExposedModel.polars_predictor(callable, features), ExposedModel._deserialize(value)
Undocumented
| Static Method | in | 
    Undocumented | 
| Static Method | mlflow | 
    Undocumented | 
| Static Method | ollama | 
    Undocumented | 
| Static Method | ollama | 
    Undocumented | 
| Static Method | polars | 
    Undocumented | 
| Async Method | depends | 
    The data artefacts that the model depends on. Which is not the input features. This is useful for e.g. RAG systems, as we can describe which documents a model depends on Or something like a vector database that we assume to be up to date. | 
| Method | needed | 
    Returns the config variables to set in order to use the model. | 
| Async Method | needed | 
    Undocumented | 
| Async Method | needed | 
    Undocumented | 
| Async Method | potential | 
    Undocumented | 
| Async Method | run | 
    Undocumented | 
| Method | with | 
    Undocumented | 
| Method | with | 
    Undocumented | 
| Class Variable | model | 
    Undocumented | 
| Property | as | 
    Undocumented | 
| Property | exposed | 
    Undocumented | 
| Class Method | _deserialize | 
    Undocumented | 
| Method | _serialize | 
    Undocumented | 
str, model_alias: str = 'champion', reference_tag: str = 'feature_refs', mlflow_config: MlflowConfig | None = None) -> ExposedModel:
    
      
      (source)
    
    
      
      
      ¶
    
  Undocumented
str, model_alias: str = 'champion', model_name: str | None = None, timeout: int = 30) -> ExposedModel:
    
      
      (source)
    
    
      
      
      ¶
    
  Undocumented
str, model: str, input_features_versions: str, prompt_template: str, embedding_name: str | None = None, precomputed_prompt_key: str = 'full_prompt') -> ExposedModel:
    
      
      (source)
    
    
      
      
      ¶
    
  Undocumented
str, model: str, prompt_template: str, input_features_versions: str) -> ExposedModel:
    
      
      (source)
    
    
      
      
      ¶
    
  Undocumented
Callable[ [ pl.DataFrame,  ModelFeatureStore],  Coroutine[ None,  None,  pl.DataFrame]], features: list[ FeatureReferencable] | None = None) -> ExposedModel:
    
      
      (source)
    
    
      
      
      ¶
    
  Undocumented
The data artefacts that the model depends on. Which is not the input features. This is useful for e.g. RAG systems, as we can describe which documents a model depends on Or something like a vector database that we assume to be up to date.
aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented
aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented
RetrievalJob, store: ModelFeatureStore) -> pl.DataFrame:
    
      
      (source)
    
    
      
      
      ¶
    
  aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented
aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented
aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented
aligned.exposed_model.interface.ABTestModel, aligned.exposed_model.interface.CodePredictor, aligned.exposed_model.interface.DillFunction, aligned.exposed_model.interface.DillPredictor, aligned.exposed_model.interface.EnitityPredictor, aligned.exposed_model.interface.PolarsExpression, aligned.exposed_model.interface.ShadowModelUndocumented