Documentation
Preparing search index...
@saltcorn/data
models/model
export=
Class export=
Model Class
Index
Constructors
constructor
Properties
configuration
id?
modelpattern
name
table_
id
Accessors
predictor_
function
template
Obj
to
Json
has_
templates
Methods
delete
get_
instances
train_
instance
update
create
find
find
One
Constructors
constructor
new
"export="
(
o
:
export=
|
ModelCfg
)
:
export=
Model constructor
Parameters
o
:
export=
|
ModelCfg
Returns
export=
Properties
configuration
configuration
:
any
Optional
id
id
?:
number
modelpattern
modelpattern
:
string
name
name
:
string
table_
id
table_id
:
number
Accessors
predictor_
function
get
predictor_function
()
:
(
arg1
:
any
,
arg2
:
any
)
=>
Promise
<
any
>
Returns
(
arg1
:
any
,
arg2
:
any
)
=>
Promise
<
any
>
template
Obj
get
templateObj
()
:
undefined
|
ModelPattern
Returns
undefined
|
ModelPattern
to
Json
get
toJson
()
:
any
Returns
any
Static
has_
templates
get
has_templates
()
:
boolean
Returns
boolean
Methods
delete
delete
()
:
Promise
<
void
>
Returns
Promise
<
void
>
get_
instances
get_instances
(
opts
?:
any
)
:
Promise
<
export=
[]
>
Parameters
Optional
opts
:
any
Returns
Promise
<
export=
[]
>
train_
instance
train_instance
(
name
:
string
,
hyperparameters
:
any
,
state
:
{}
,
)
:
Promise
<
string
|
export=
>
Parameters
name
:
string
hyperparameters
:
any
state
:
{}
Returns
Promise
<
string
|
export=
>
update
update
(
row
:
Row
)
:
Promise
<
void
>
Parameters
row
:
Row
Returns
Promise
<
void
>
Static
create
create
(
lib_in
:
ModelCfg
)
:
Promise
<
export=
>
Parameters
lib_in
:
ModelCfg
Returns
Promise
<
export=
>
Static
find
find
(
where
:
Where
,
selectopts
?:
SelectOptions
)
:
Promise
<
export=
[]
>
Parameters
where
:
Where
Optional
selectopts
:
SelectOptions
Returns
Promise
<
export=
[]
>
Static
find
One
findOne
(
where
:
Where
)
:
Promise
<
export=
>
Parameters
where
:
Where
Returns
Promise
<
export=
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
configuration
id
modelpattern
name
table_
id
Accessors
predictor_
function
template
Obj
to
Json
has_
templates
Methods
delete
get_
instances
train_
instance
update
create
find
find
One
Documentation
Loading...
Model Class