You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NamedTuple{(:name, :instances, :human_name, :target_scitype, :supports_weights, :supports_class_weights, :prediction_type, :orientation, :reports_each_observation, :aggregation, :is_feature_dependent, :docstring, :distribution_type), T} where T<:Tuple[]
I obtain no results.
Moreover, the following code won't work:
using DataFrames, MLJ
# Load Model
Model =@load MultitargetRidgeRegressor
model =Model()
# Generate data
n =100
d =5
o =3
X =DataFrame(rand(Float64, n, d), :auto)
y =DataFrame(x1 = X.x1, x2 = X.x2, x3 = X.x3)
# Fit the machine for a check
mach =machine(model, X, y)
fit!(mach)
evaluate!(mach; resampling=CV(), measure=myloss)
ERROR: ArgumentError: scitype of target = Table{AbstractVector{Continuous}} but target_scitype(MeanAbsoluteError @543) = Union{AbstractVector{Continuous}, AbstractVector{Count}}.
I currently use the workaround:
mymae(X, y) =abs.(MLJ.matrix(X) .- MLJ.matrix(y)) |> mean
evaluate!(mach; resampling=CV(), measure=mymae)
Which is working fine but duplicates the core code of the mae function.
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Hi everyone,
It seems that no
measure
exists for Multi-Target models. Multi-Target models are obtainable as:but when I try to query the appropriate metrics:
Moreover, the following code won't work:
I currently use the workaround:
Which is working fine but duplicates the core code of the
mae
function.Thanks for your help!
The text was updated successfully, but these errors were encountered: