Searched refs:x_weight (Results 1 – 3 of 3) sorted by relevance
351 def standardize_sample_or_class_weights(x_weight, output_names, weight_type): argument366 …if x_weight is None or (isinstance(x_weight, list) and len(x_weight) == 0): # pylint: disable=g-e…369 if isinstance(x_weight, list) and len(x_weight) == 1:370 return x_weight371 if isinstance(x_weight, dict) and output_names[0] in x_weight:372 return [x_weight[output_names[0]]]374 return [x_weight]375 if isinstance(x_weight, list):376 if len(x_weight) != len(output_names):378 str(len(x_weight)) + ' elements, but the model has ' +[all …]
116 const std::tuple<int64, int64, float> x_weight = GetReferenceWeight( in CalcReferenceResizedVal() local129 const int64 xs_lower = std::get<0>(x_weight); in CalcReferenceResizedVal()130 const int64 xs_upper = std::get<1>(x_weight); in CalcReferenceResizedVal()131 const float xs_lerp = std::get<2>(x_weight); in CalcReferenceResizedVal()
135 float x_weight = kernel.Value(x_kernel_pos * one_over_kernel_scale.x()); in Sample() local136 float kernel_weight = y_weight * x_weight; in Sample()