@@ -62,7 +62,7 @@ $TYPEDSIGNATURES
6262For simple benchmarks where there is no instance object, maximizer does not need any keyword arguments.
6363"""
6464function maximizer_kwargs (
65- :: AbstractBenchmark , sample:: DataSample{F,S,C,Nothing }
65+ :: AbstractBenchmark , sample:: DataSample{Nothing, F,S,C}
6666) where {F,S,C}
6767 return NamedTuple ()
6868end
8888"""
8989$TYPEDSIGNATURES
9090
91- Compute the objective value of the target in the sample (needs to exist) .
91+ Compute the objective value of given solution `y` .
9292"""
9393function objective_value (
94- bench:: AbstractBenchmark , sample:: DataSample{F,S,C,I}
95- ) where {F,S<: AbstractArray ,C<: AbstractArray ,I }
96- return objective_value (bench, sample. θ_true, sample . y_true )
94+ bench:: AbstractBenchmark , sample:: DataSample{I, F,S,C} , y :: AbstractArray
95+ ) where {I, F,S,C<: AbstractArray }
96+ return objective_value (bench, sample. θ_true, y )
9797end
9898
9999"""
100100$TYPEDSIGNATURES
101101
102- Compute the objective value of given solution `y` .
102+ Compute the objective value of the target in the sample (needs to exist) .
103103"""
104104function objective_value (
105- bench:: AbstractBenchmark , sample:: DataSample{F,S,C,I} , y :: AbstractArray
106- ) where {F,S,C <: AbstractArray ,I }
107- return objective_value (bench, sample. θ_true, y )
105+ bench:: AbstractBenchmark , sample:: DataSample{I, F,S,C}
106+ ) where {I, F,S<: AbstractArray ,C }
107+ return objective_value (bench, sample, sample . y_true )
108108end
109109
110110"""
0 commit comments