MCPcopy Create free account
hub / github.com/catboost/catboost / Ne

Method Ne

library/cpp/expression/expression_variable.cpp:150–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 return IsEqual(secondOperand, EPS) ? 1.0 : 0.0;
149}
150double TExpressionVariable::Ne(const TExpressionVariable& secondOperand) const {
151 return IsEqual(secondOperand, EPS) ? 0.0 : 1.0;
152}
153double TExpressionVariable::Le(const TExpressionVariable& secondOperand) const {
154 return ToDouble() <= secondOperand.ToDouble() + EPS ? 1.0 : 0.0;
155}

Callers 2

CalcVariantExpressionMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 1

IsEqualFunction · 0.70

Tested by

no test coverage detected