Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/josephsdavid/MLJFlux.jl into…
Browse files Browse the repository at this point in the history
… josephsdavid-dev
  • Loading branch information
ablaom committed Aug 19, 2022
2 parents f86654a + ccbed5e commit ab5c3e1
Show file tree
Hide file tree
Showing 5 changed files with 699 additions and 73 deletions.
8 changes: 6 additions & 2 deletions src/MLJFlux.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module MLJFlux
module MLJFlux

export CUDALibs, CPU1

Expand All @@ -14,6 +14,8 @@ using ColorTypes
using ComputationalResources
using Random

const MMI=MLJModelInterface

include("penalizers.jl")
include("core.jl")
include("builders.jl")
Expand All @@ -24,7 +26,7 @@ include("image.jl")
include("mlj_model_interface.jl")

### Package specific model traits:
MLJModelInterface.metadata_pkg.((NeuralNetworkRegressor,
MMI.metadata_pkg.((NeuralNetworkRegressor,
MultitargetNeuralNetworkRegressor,
NeuralNetworkClassifier,
ImageClassifier),
Expand All @@ -37,4 +39,6 @@ MLJModelInterface.metadata_pkg.((NeuralNetworkRegressor,
export NeuralNetworkRegressor, MultitargetNeuralNetworkRegressor
export NeuralNetworkClassifier, ImageClassifier



end #module
6 changes: 1 addition & 5 deletions src/classifier.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ end
MLJModelInterface.metadata_model(NeuralNetworkClassifier,
input=Table(Continuous),
target=AbstractVector{<:Finite},
path="MLJFlux.NeuralNetworkClassifier",
descr="A neural network model for making "*
"probabilistic predictions of a "*
"`Multiclass` or `OrderedFactor` target, "*
"given a table of `Continuous` features. ")
path="MLJFlux.NeuralNetworkClassifier")
5 changes: 1 addition & 4 deletions src/image.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ end
MLJModelInterface.metadata_model(ImageClassifier,
input=AbstractVector{<:MLJModelInterface.Image},
target=AbstractVector{<:Multiclass},
path="MLJFlux.ImageClassifier",
descr="A neural network model for making probabilistic "*
"predictions of a `GrayImage` target, "*
"given a table of `Continuous` features. ")
path="MLJFlux.ImageClassifier")
13 changes: 2 additions & 11 deletions src/regressor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ end
MLJModelInterface.metadata_model(NeuralNetworkRegressor,
input=Table(Continuous),
target=AbstractVector{<:Continuous},
path="MLJFlux.NeuralNetworkRegressor",
descr="A neural network model for making "*
"deterministic predictions of a "*
"`Continuous` target, given a table of "*
"`Continuous` features. ")
path="MLJFlux.NeuralNetworkRegressor")


# # MULTITARGET NEURAL NETWORK REGRESSOR
Expand Down Expand Up @@ -59,9 +55,4 @@ end
MLJModelInterface.metadata_model(MultitargetNeuralNetworkRegressor,
input=Table(Continuous),
target=Table(Continuous),
path="MLJFlux.MultitargetNeuralNetworkRegressor",
descr = "A neural network model for making "*
"deterministic predictions of a "*
"`Continuous` multi-target, presented "*
"as a table, given a table of "*
"`Continuous` features. ")
path="MLJFlux.MultitargetNeuralNetworkRegressor")
Loading

0 comments on commit ab5c3e1

Please sign in to comment.