メインコンテンツへスキップ

class OnCreateArtifact

新しいアーティファクトが作成されます。 例: コレクション “my-collection” に新しいアーティファクトが作成されたときに発生するイベントを 定義します:

メソッド OnCreateArtifact.__init__

引数:
  • event_type (Literal[CREATE_ARTIFACT]):
  • scope (wandb.automations.scopes._ArtifactSequenceScope | wandb.automations.scopes._ArtifactPortfolioScope): イベントのスコープです。アーティファクト コレクションである必要があります。
  • filter (wandb.automations._filters.operators.And | wandb.automations._filters.operators.Or | wandb.automations._filters.operators.Nor | wandb.automations._filters.operators.Not | wandb.automations._filters.operators.Lt | wandb.automations._filters.operators.Gt | wandb.automations._filters.operators.Lte | wandb.automations._filters.operators.Gte | wandb.automations._filters.operators.Eq | wandb.automations._filters.operators.Ne | wandb.automations._filters.operators.In | wandb.automations._filters.operators.NotIn | wandb.automations._filters.operators.Exists | wandb.automations._filters.operators.Regex | wandb.automations._filters.operators.Contains | wandb.automations._filters.expressions.FilterExpr | dict[str, Any]): このイベントをトリガーするために必要な追加条件がある場合は、それを指定します。
戻り値: OnCreateArtifact オブジェクト。