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
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */packageorg.apache.wayang.basic.operators;
importorg.apache.wayang.basic.model.KMeansModel;
importorg.apache.wayang.core.api.Configuration;
importorg.apache.wayang.core.optimizer.cardinality.CardinalityEstimator;
importorg.apache.wayang.core.plan.wayangplan.UnaryToUnaryOperator;
importorg.apache.wayang.core.types.DataSetType;
importjava.util.Optional;
publicclassKMeansOperatorextendsUnaryToUnaryOperator<double[], KMeansModel> {
// TODO other parametersprotectedintk;
publicKMeansOperator(intk) {
super(DataSetType.createDefaultUnchecked(double[].class),
DataSetType.createDefaultUnchecked(KMeansModel.class),
false);
this.k = k;
}
publicKMeansOperator(KMeansOperatorthat) {
super(that);
this.k = that.k;
}
publicintgetK() {
returnk;
}
@OverridepublicOptional<CardinalityEstimator> createCardinalityEstimator(intoutputIndex, Configurationconfiguration) {
// TODOreturnsuper.createCardinalityEstimator(outputIndex, configuration);
}
}
0549b91d1394b7a6ee289f84785fb4f78403b356
The text was updated successfully, but these errors were encountered:
other parameters
incubator-wayang/wayang-commons/wayang-basic/src/main/java/org/apache/wayang/basic/operators/KMeansOperator.java
Line 31 in 11682e6
0549b91d1394b7a6ee289f84785fb4f78403b356
The text was updated successfully, but these errors were encountered: