class MaiaJob extends Model

Traits

HasFactory

Constants

TRAIN_NOVELTY_DETECTION

TRAIN_OWN_ANNOTATIONS

TRAIN_KNOWLEDGE_TRANSFER

TRAIN_AREA_KNOWLEDGE_TRANSFER

Properties

protected array $casts

The attributes that should be casted to native types.

protected array $dispatchesEvents

The event map for the model.

Methods

setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')

Set a dynamic JSON attribute.

mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')

Get a dynamic JSON attribute.

BelongsTo
volume()

The volume, this MAIA job belongs to.

BelongsTo
user()

The user who created this MAIA job.

BelongsTo
state()

The state of this MAIA job.

BelongsTo
trainingProposals()

The training proposals of this MAIA job.

BelongsTo
annotationCandidates()

The annotation candidates of this MAIA job.

bool
isRunning()

Determine if the job is currently running novelty detection or object detection.

bool
hasFailed()

Determine if the job failed during novelty detection or object detection.

bool
requiresAction()

Determine if the job requires a user action to continue

array
getParamsAttribute()

Get the configured parameters of this job.

setParamsAttribute(array $params)

Set the configured parameters of this job.

array
getErrorAttribute()

Get the error information on this job (if any).

setErrorAttribute(array $error)

Set the error information for this job.

bool
shouldUseExistingAnnotations()

Determine if this job should use existing annotations to get training data.

bool
shouldUseNoveltyDetection()

Determine if this job should use novelty detection to get training data.

bool
shouldUseKnowledgeTransfer()

Determine if this job should use knowledge transfer to get training data.

bool
getConvertingCandidatesAttribute()

Determine whether a job to convert candidates is running.

setConvertingCandidatesAttribute(bool $converting)

Set whether a job to convert candidates is running.

bool
shouldShowTrainingProposals()

Determine if this job should show the training porposals tabs.

static Factory
newFactory()

Create a new factory instance for the model.

Details

in HasJsonAttributes at line 16
protected setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')

Set a dynamic JSON attribute.

Parameters

string $key

Key of the attribute in the JSON.

mixed $value

Value of the attribute in the JSON.

string $attrs

Name of the JSON column of the model.

in HasJsonAttributes at line 38
protected mixed getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')

Get a dynamic JSON attribute.

Parameters

string $key

Key of the attribute in the JSON.

mixed $default

Default value.

string $attrs

Name of the JSON column of the model.

Return Value

mixed

at line 62
BelongsTo volume()

The volume, this MAIA job belongs to.

Return Value

BelongsTo

at line 72
BelongsTo user()

The user who created this MAIA job.

Return Value

BelongsTo

at line 82
BelongsTo state()

The state of this MAIA job.

Return Value

BelongsTo

at line 92
BelongsTo trainingProposals()

The training proposals of this MAIA job.

Return Value

BelongsTo

at line 102
BelongsTo annotationCandidates()

The annotation candidates of this MAIA job.

Return Value

BelongsTo

at line 112
bool isRunning()

Determine if the job is currently running novelty detection or object detection.

Return Value

bool

at line 123
bool hasFailed()

Determine if the job failed during novelty detection or object detection.

Return Value

bool

at line 134
bool requiresAction()

Determine if the job requires a user action to continue

Return Value

bool

at line 144
array getParamsAttribute()

Get the configured parameters of this job.

Return Value

array

at line 154
setParamsAttribute(array $params)

Set the configured parameters of this job.

Parameters

array $params

at line 164
array getErrorAttribute()

Get the error information on this job (if any).

Return Value

array

at line 174
setErrorAttribute(array $error)

Set the error information for this job.

Parameters

array $error

at line 184
bool shouldUseExistingAnnotations()

Determine if this job should use existing annotations to get training data.

Return Value

bool

at line 194
bool shouldUseNoveltyDetection()

Determine if this job should use novelty detection to get training data.

Return Value

bool

at line 205
bool shouldUseKnowledgeTransfer()

Determine if this job should use knowledge transfer to get training data.

Return Value

bool

at line 216
bool getConvertingCandidatesAttribute()

Determine whether a job to convert candidates is running.

Return Value

bool

at line 226
setConvertingCandidatesAttribute(bool $converting)

Set whether a job to convert candidates is running.

Parameters

bool $converting

at line 236
bool shouldShowTrainingProposals()

Determine if this job should show the training porposals tabs.

Return Value

bool

at line 248
static protected Factory newFactory()

Create a new factory instance for the model.

Return Value

Factory