Home
last modified time | relevance | path

Searched refs:is_categorical (Results 1 – 25 of 44) sorted by relevance

12

/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/ensemble/_hist_gradient_boosting/
H A Dbinning.py156 is_categorical=None, argument
163 self.is_categorical = is_categorical
201 if self.is_categorical is None:
204 self.is_categorical_ = np.asarray(self.is_categorical, dtype=np.uint8)
213 is_categorical = self.is_categorical_[f_idx]
215 if is_categorical and known_cats is None:
219 if not is_categorical and known_cats is not None:
H A Dgrower.py199 is_categorical=None, argument
255 if is_categorical is None:
256 is_categorical = np.zeros(shape=X_binned.shape[1], dtype=np.uint8)
258 is_categorical = np.asarray(is_categorical, dtype=np.uint8)
262 is_categorical == 1, monotonic_cst != MonotonicConstraint.NO_CST
277 is_categorical,
291 self.is_categorical = is_categorical
491 self.n_categorical_splits += node.split_info.is_categorical
665 node["is_categorical"] = split_info.is_categorical
672 elif split_info.is_categorical:
H A Dsplitting.pyx47 unsigned char is_categorical
86 is_categorical : bool
113 self.is_categorical = is_categorical
195 self.is_categorical = is_categorical
300 unsigned char is_categorical = split_info.is_categorical
325 if is_categorical:
464 const unsigned char [::1] is_categorical = self.is_categorical
483 split_infos[feature_idx].is_categorical = is_categorical[feature_idx]
540 if split_info.is_categorical:
1082 unsigned char is_categorical,
[all …]
H A Dcommon.pxd36 unsigned char is_categorical
38 # Only used if is_categorical is True
H A Dcommon.pyx31 ('is_categorical', np.uint8),
33 # Only used if is_categorical is True
H A Dgradient_boosting.py161 is_categorical = np.zeros(n_features, dtype=bool)
162 is_categorical[categorical_features] = True
170 is_categorical = categorical_features
172 if not np.any(is_categorical):
181 if is_categorical[f_idx]:
204 return is_categorical, known_categories
336 is_categorical=self.is_categorical_,
517 is_categorical=self.is_categorical_,
H A D_predictor.pyx68 elif node.is_categorical:
134 elif node.is_categorical:
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/ensemble/_hist_gradient_boosting/tests/
H A Dtest_splitting.py67 is_categorical,
138 is_categorical = np.zeros_like(monotonic_cst, dtype=np.uint8)
145 is_categorical,
281 is_categorical = np.zeros_like(monotonic_cst, dtype=np.uint8)
288 is_categorical,
357 is_categorical = np.zeros_like(monotonic_cst, dtype=np.uint8)
364 is_categorical,
533 is_categorical,
638 is_categorical,
823 is_categorical,
[all …]
H A Dtest_binning.py350 is_categorical=np.array([True]),
378 is_categorical=np.array([False, True]),
411 is_categorical=np.array([False, True, True]),
452 def test_categorical_parameters(is_categorical, known_categories, match): argument
458 is_categorical=is_categorical, known_categories=known_categories
H A Dtest_grower.py451 is_categorical = np.ones(1, dtype=np.uint8)
460 is_categorical=is_categorical,
544 X_binned, gradients, hessians, is_categorical=[True], **grower_params
H A Dtest_monotonic_contraints.py308 is_categorical = np.zeros_like(monotonic_cst, dtype=np.uint8)
318 is_categorical,
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/base/
H A Dtest_misc.py72 is_categorical = is_categorical_dtype(obj.dtype) or (
82 elif is_object or is_categorical:
/dports/biology/avida/avida-2.12.4-src/apps/viewer-macos/src/viewer-core/
H A DMapScaleView.h38 bool is_categorical; variable
H A DMapScaleView.mm100 if (is_categorical) {
163 is_categorical = state->GetColorScale().IsCategorical();
/dports/math/py-pandas/pandas-1.2.5/pandas/core/dtypes/
H A Dapi.py7 is_categorical,
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/dtypes/
H A Dtest_common.py203 assert com.is_categorical(cat)
204 assert com.is_categorical(pd.Series(cat))
205 assert com.is_categorical(pd.CategoricalIndex([1, 2, 3]))
207 assert not com.is_categorical([1, 2, 3])
213 com.is_categorical([1, 2, 3])
H A Dtest_dtypes.py10 is_categorical,
168 assert is_categorical(s.dtype)
169 assert is_categorical(s)
170 assert not is_categorical(np.dtype("float64"))
171 assert not is_categorical(1.0)
/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/tree/gpu_hist/
H A Dtest_evaluate_splits.cu18 void TestEvaluateSingleSplit(bool is_categorical) { in TestEvaluateSingleSplit() argument
41 if (is_categorical) { in TestEvaluateSingleSplit()
/dports/misc/xgboost/xgboost-1.5.1/tests/cpp/tree/gpu_hist/
H A Dtest_evaluate_splits.cu18 void TestEvaluateSingleSplit(bool is_categorical) { in TestEvaluateSingleSplit() argument
41 if (is_categorical) { in TestEvaluateSingleSplit()
/dports/science/dakota/dakota-6.13.0-release-public.src-UI/packages/external/NOMAD/src/
H A DDirections.hpp230 bool is_categorical ( void ) const in is_categorical() function in NOMAD::Directions
H A DVariable_Group.cpp190 if ( _directions->is_categorical() ) in display()
/dports/math/py-pandas/pandas-1.2.5/doc/source/reference/
H A Dgeneral_utility_functions.rst108 api.types.is_categorical
/dports/biology/plink/plink-ng-79b2df8c/2.0/
H A Dplink2_psam.cc622 const uint32_t is_categorical = IsSet(categorical_phenos, pheno_idx); in LoadPsam() local
628 if (!is_categorical) { in LoadPsam()
653 if (is_categorical) { in LoadPsam()
1336 const uint32_t is_categorical = IsSet(categorical_phenos, new_pheno_idx); in LoadPhenos() local
1342 if (!is_categorical) { in LoadPhenos()
1367 if (is_categorical) { in LoadPhenos()
/dports/misc/py-xgboost/xgboost-1.5.1/src/tree/
H A Dtree_model.cc96 auto is_categorical = tree.GetSplitTypes()[nid] == FeatureType::kCategorical; in SplitNode() local
99 CHECK(is_categorical) in SplitNode()
104 auto is_numerical = !is_categorical; in SplitNode()
136 if (is_categorical) { in SplitNode()
618 template <bool is_categorical>
625 if (is_categorical) { in BuildEdge()
/dports/misc/xgboost/xgboost-1.5.1/src/tree/
H A Dtree_model.cc96 auto is_categorical = tree.GetSplitTypes()[nid] == FeatureType::kCategorical; in SplitNode() local
99 CHECK(is_categorical) in SplitNode()
104 auto is_numerical = !is_categorical; in SplitNode()
136 if (is_categorical) { in SplitNode()
618 template <bool is_categorical>
625 if (is_categorical) { in BuildEdge()

12