Model<'In, 'Out> Type

Represents a model, primarily a collection of named parameters and sub-models and a function governed by them.

Constructors

Constructor Description

Model(?f, ?parameters, ?buffers, ?models)

Full Usage: Model(?f, ?parameters, ?buffers, ?models)

Parameters:
Returns: Model<'In, 'Out>
?f : 'In -> 'Out
?parameters : seq<Parameter>
?buffers : seq<Parameter>
?models : seq<ModelBase>
Returns: Model<'In, 'Out>

Instance members

Instance member Description

this.asFunction parameters input

Full Usage: this.asFunction parameters input

Parameters:
    parameters : Tensor
    input : 'In

Returns: 'Out

Use the model as a function of its parameters and input.

The resulting function can be composed with a loss function and differentiated. During execution the parameters of the model are temporarily set to the supplied parameters.

parameters : Tensor
input : 'In
Returns: 'Out

this.clone ()

Full Usage: this.clone ()

Returns: Model<'In, 'Out>

TBD

Returns: Model<'In, 'Out>

this.forward arg1

Full Usage: this.forward arg1

Parameters:
    arg0 : 'In

Returns: 'Out
Modifiers: abstract

TBD

arg0 : 'In
Returns: 'Out

Static members

Static member Description

t --> model

Full Usage: t --> model

Parameters:
    t : 'In
    model : Model<'In, 'Out>

Returns: 'Out

TBD

t : 'In
model : Model<'In, 'Out>
Returns: 'Out

f --> model

Full Usage: f --> model

Parameters:
    f : 'In -> 'Out
    model : Model<'Out, 'Out2>

Returns: Model<'In, 'Out2>

TBD

f : 'In -> 'Out
model : Model<'Out, 'Out2>
Returns: Model<'In, 'Out2>

model --> f

Full Usage: model --> f

Parameters:
    model : Model<'In, 'Out>
    f : 'Out -> 'Out2

Returns: Model<'In, 'Out2>

TBD

model : Model<'In, 'Out>
f : 'Out -> 'Out2
Returns: Model<'In, 'Out2>

model1 --> model2

Full Usage: model1 --> model2

Parameters:
    model1 : Model<'In, 'Out>
    model2 : Model<'Out, 'Out2>

Returns: Model<'In, 'Out2>

TBD

model1 : Model<'In, 'Out>
model2 : Model<'Out, 'Out2>
Returns: Model<'In, 'Out2>

Model.compose model1 model2

Full Usage: Model.compose model1 model2

Parameters:
    model1 : Model<'In, 'Out>
    model2 : Model<'Out, 'Out2>

Returns: Model<'In, 'Out2>

TBD

model1 : Model<'In, 'Out>
model2 : Model<'Out, 'Out2>
Returns: Model<'In, 'Out2>

© Copyright 2021, DiffSharp Contributors.