Skip to content

Commit f62c533

Browse files
authored
Merge pull request #47 from akleeman/default_template_predict
Add a default template parameter for predict(feature).
2 parents 78290a8 + a4acdbf commit f62c533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

albatross/core/model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class RegressionModel : public ParameterHandlingMixin {
9797
return predict(features, detail::PredictTypeIdentity<PredictType>());
9898
}
9999

100-
template <typename PredictType>
100+
template <typename PredictType = JointDistribution>
101101
PredictType predict(const FeatureType &feature) const {
102102
std::vector<FeatureType> features = {feature};
103103
return predict<PredictType>(features);

0 commit comments

Comments
 (0)