> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# prj.register_model

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

Register a flow artifact as a model asset instance.

```python theme={null}
prj.register_model(name, artifact, annotations=None, tags=None, description=None)
```

Register a Metaflow artifact as a model asset.

<GTable cols="20% 10% 70%">
  <GHead>
    <GRow>
      <GTH>Parameter</GTH>
      <GTH>Type</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`name`</GCell>
      <GCell>str</GCell>
      <GCell>Asset name (e.g., `"fraud_classifier"`)</GCell>
    </GRow>

    <GRow>
      <GCell>`artifact`</GCell>
      <GCell>str</GCell>
      <GCell>Artifact name containing the model</GCell>
    </GRow>

    <GRow>
      <GCell>`annotations`</GCell>
      <GCell>dict</GCell>
      <GCell>Model metadata (accuracy, hyperparameters, etc.)</GCell>
    </GRow>

    <GRow>
      <GCell>`tags`</GCell>
      <GCell>dict</GCell>
      <GCell>Tags (framework, algorithm, etc.)</GCell>
    </GRow>

    <GRow>
      <GCell>`description`</GCell>
      <GCell>str</GCell>
      <GCell>Description</GCell>
    </GRow>
  </GBody>
</GTable>

```python theme={null}
self.model = RandomForestClassifier().fit(X, y)
self.prj.register_model("fraud_classifier", "model",
    annotations={"accuracy": 0.95, "algorithm": "RandomForest"})
```
