mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
constructor changes change
This commit is contained in:
parent
aedf4925dc
commit
6a8542c8f6
@ -73,7 +73,7 @@ AggregateFunctionPtr createAggregateFunctionMLMethod(
|
||||
if (argument_types.size() < 2)
|
||||
throw Exception("Aggregate function " + name + " requires at least two arguments", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
|
||||
return std::make_shared<Method>(argument_types.size() - 1, gc, wu, learning_rate, batch_size);
|
||||
return std::make_shared<Method>(argument_types.size() - 1, gc, wu, learning_rate, batch_size, argument_types, parameters);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -375,8 +375,11 @@ public:
|
||||
std::shared_ptr<IGradientComputer> gradient_computer,
|
||||
std::shared_ptr<IWeightsUpdater> weights_updater,
|
||||
Float64 learning_rate,
|
||||
UInt32 batch_size)
|
||||
: param_num(param_num),
|
||||
UInt32 batch_size,
|
||||
const DataTypes & argument_types,
|
||||
const Array & params)
|
||||
: IAggregateFunctionDataHelper<Data, AggregateFunctionMLMethod<Data, Name>>(argument_types, params),
|
||||
param_num(param_num),
|
||||
learning_rate(learning_rate),
|
||||
batch_size(batch_size),
|
||||
gc(std::move(gradient_computer)),
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user