MCPcopy
hub / github.com/microsoft/qlib / abs

Method abs

qlib/utils/index_data.py:446–449  ·  view source on GitHub ↗

get the abs of data except np.nan.

(self)

Source from the content-addressed store, hash-verified

444 return self.__class__(~self.data.astype(bool), *self.indices)
445
446 def abs(self):
447 """get the abs of data except np.nan."""
448 tmp_data = np.absolute(self.data)
449 return self.__class__(tmp_data, *self.indices)
450
451 def replace(self, to_replace: Dict[np.number, np.number]):
452 assert isinstance(to_replace, dict)

Callers 15

_load_internalMethod · 0.45
test_AbsMethod · 0.45
evaluateFunction · 0.45
indicator_analysisFunction · 0.45
fetch_resultMethod · 0.45
_get_constrainsMethod · 0.45
evaluateFunction · 0.45
_feature_normMethod · 0.45
robust_zscoreFunction · 0.45
_predictMethod · 0.45

Calls

no outgoing calls

Tested by 2

_load_internalMethod · 0.36
test_AbsMethod · 0.36