MCPcopy Create free account

hub / github.com/dmlc/treelite / functions

Functions686 in github.com/dmlc/treelite

FunctionTreeliteDeserializeModelFromPyBuffer
src/c_api/serializer.cc:77
FunctionTreeliteDetectXGBoostFormat
src/c_api/model_loader.cc:90
FunctionTreeliteDumpAsJSON
src/c_api/model.cc:18
FunctionTreeliteFreeModel
src/c_api/model.cc:70
FunctionTreeliteGTILDeleteConfig
src/c_api/gtil.cc:26
FunctionTreeliteGTILPredictSparse
src/c_api/gtil.cc:62
FunctionTreeliteGetHeaderField
src/c_api/field_accessor.cc:12
FunctionTreeliteGetInputType
src/c_api/model.cc:27
FunctionTreeliteGetLastError
src/c_api/c_api_error.cc:25
FunctionTreeliteGetOutputType
src/c_api/model.cc:36
FunctionTreeliteGetTreeDepth
src/c_api/model.cc:76
FunctionTreeliteGetTreeField
src/c_api/field_accessor.cc:20
FunctionTreeliteLoadLightGBMModel
src/c_api/model_loader.cc:98
FunctionTreeliteLoadLightGBMModelFromString
src/c_api/model_loader.cc:107
FunctionTreeliteLoadSKLearnGradientBoostingClassifier
src/c_api/sklearn.cc:70
FunctionTreeliteLoadSKLearnGradientBoostingRegressor
src/c_api/sklearn.cc:56
FunctionTreeliteLoadSKLearnHistGradientBoostingClassifier
src/c_api/sklearn.cc:99
FunctionTreeliteLoadSKLearnHistGradientBoostingRegressor
src/c_api/sklearn.cc:84
FunctionTreeliteLoadSKLearnIsolationForest
src/c_api/sklearn.cc:28
FunctionTreeliteLoadSKLearnRandomForestClassifier
src/c_api/sklearn.cc:42
FunctionTreeliteLoadSKLearnRandomForestRegressor
src/c_api/sklearn.cc:15
FunctionTreeliteLoadXGBoostModel
src/c_api/model_loader.cc:40
FunctionTreeliteLoadXGBoostModelFromString
src/c_api/model_loader.cc:47
FunctionTreeliteLoadXGBoostModelFromUBJSONString
src/c_api/model_loader.cc:81
FunctionTreeliteLoadXGBoostModelLegacyBinary
src/c_api/model_loader.cc:20
FunctionTreeliteLoadXGBoostModelLegacyBinaryFromMemoryBuffer
src/c_api/model_loader.cc:30
FunctionTreeliteLoadXGBoostModelUBJSON
src/c_api/model_loader.cc:72
FunctionTreeliteModelBuilderCategoricalTest
src/c_api/model_builder.cc:69
FunctionTreeliteModelBuilderDataCount
src/c_api/model_builder.cc:111
FunctionTreeliteModelBuilderGain
src/c_api/model_builder.cc:104
FunctionTreeliteModelBuilderLeafVectorFloat32
src/c_api/model_builder.cc:88
FunctionTreeliteModelBuilderLeafVectorFloat64
src/c_api/model_builder.cc:96
FunctionTreeliteModelBuilderSumHess
src/c_api/model_builder.cc:119
FunctionTreeliteQueryNumFeature
src/c_api/model.cc:52
FunctionTreeliteQueryNumTree
src/c_api/model.cc:45
FunctionTreeliteQueryTreeliteVersion
src/c_api/c_api_error.cc:33
FunctionTreeliteRegisterLogCallback
src/c_api/logging.cc:12
FunctionTreeliteRegisterWarningCallback
src/c_api/logging.cc:19
FunctionTreeliteSerializeModelToBytes
src/c_api/serializer.cc:36
FunctionTreeliteSerializeModelToFile
src/c_api/serializer.cc:20
FunctionTreeliteSerializeModelToPyBuffer
src/c_api/serializer.cc:60
FunctionTreeliteSetHeaderField
src/c_api/field_accessor.cc:28
FunctionTreeliteSetTreeField
src/c_api/field_accessor.cc:36
FunctionTypeInfoFromType
include/treelite/enum/typeinfo.h:35
MethodUint64
src/model_loader/detail/xgboost_json/delegated_handler.cc:86
MethodUint64
src/model_loader/detail/xgboost_json/delegated_handler.h:329
FunctionWriteNode
src/json_serializer.cc:82
Method__del__
(self)
python/treelite/model_builder.py:179
Method__del__
(self)
python/treelite/model.py:29
Method__del__
(self)
python/treelite/gtil/gtil.py:44
Method__init__
( self, *, threshold_type: str, leaf_output_type: str, metadata: Metad
python/treelite/model_builder.py:144
Method__init__
(self, *, handle: Optional[Any] = None)
python/treelite/model.py:26
Method__init__
(self, model: Model)
python/treelite/model.py:443
Method__init__
(self, model: Model, *, tree_id: int)
python/treelite/model.py:515
Method__init__
(self, *, dtype)
python/treelite/sklearn/importer.py:20
Method__post_init__
(self)
python/treelite/gtil/gtil.py:36
Function_log_callback
Redirect logs from native library into Python console
python/treelite/core.py:17
Function_warn_callback
Redirect warnings from native library into Python console
python/treelite/core.py:23
Methodasdict
Convert to dictionary
python/treelite/model_builder.py:75
Methodasdict
Convert to dictionary
python/treelite/model_builder.py:104
Methodassign_value
src/model_loader/detail/xgboost_json/delegated_handler.cc:176
Methodbinary
src/model_loader/detail/xgboost_json/sax_adapters.cc:108
Methodboolean
src/model_loader/detail/xgboost_json/sax_adapters.cc:88
Functionbuild_editable
Build an editable installation. We mostly delegate to Hatchling.
python/packager/pep517.py:153
Functionbuild_sdist
Build a source distribution
python/packager/pep517.py:109
Functionbuild_wheel
Build a wheel
python/packager/pep517.py:50
Methodcategorical_test
Declare the current node as a categorical test node, where the test is of form [feature value] \\in [category list]. Paramet
python/treelite/model_builder.py:259
Methodcdefault
src/model_loader/xgboost_legacy.cc:211
Methodcheck_cur_key
src/model_loader/detail/xgboost_json/delegated_handler.cc:171
Methodcreate
src/model_loader/detail/xgboost_json/delegated_handler.cc:215
Methodcreate_empty
src/model_loader/detail/xgboost_json/delegated_handler.cc:204
Methoddata_count
Specify the number of data points (samples) that are mapped to the current node. Parameters ---------- data_count:
python/treelite/model_builder.py:354
Methoddeprecation_error
(alt: str)
python/treelite/model.py:122
Functiondoes_not_raise
Placeholder to indicate that a section of code is not expected to raise any exception
tests/python/util.py:37
Methodend_array
src/model_loader/detail/xgboost_json/sax_adapters.cc:129
Methodend_object
src/model_loader/detail/xgboost_json/sax_adapters.cc:121
Functionexponential
src/gtil/postprocessor.cc:40
Functionexponential_standard_ratio
src/gtil/postprocessor.cc:45
Functionexport_model
Export a model as a scikit-learn RandomForest. Note ---- Currently only random forests can be exported as scikit-learn model objects
python/treelite/sklearn/exporter.py:128
Functionfrom_lightgbm
Load a tree ensemble model from a LightGBM Booster object Parameters ---------- booster : object of type :py:class:`lightgbm.Booster
python/treelite/frontend.py:314
Functionfrom_xgboost
Load a tree ensemble model from an XGBoost Booster object Parameters ---------- booster : Object of type :py:class:`xgboost.Booster`
python/treelite/frontend.py:178
Methodgain
Specify the gain (loss reduction) that's resulted from the current split. Parameters ---------- gain: Ga
python/treelite/model_builder.py:338
Methodget_field
Get a field Parameters ---------- name: Name of the field. Consult :doc:`the model spec </serialization/
python/treelite/model.py:446
Methodhandle
Access the handle to the associated C++ object
python/treelite/model_builder.py:185
Methodhandle
Access the handle to the associated C++ object
python/treelite/model.py:35
Methodhandle
Access the handle to the associated C++ object
python/treelite/gtil/gtil.py:49
Functionhinge
src/gtil/postprocessor.cc:29
Functionidentity
src/gtil/postprocessor.cc:20
Functionidentity_multiclass
src/gtil/postprocessor.cc:55
Functionimport_model
Load a tree ensemble model from a scikit-learn model object Note ---- For :py:class:`~sklearn.ensemble.IsolationForest`, the loaded
python/treelite/sklearn/importer.py:62
Functionimport_model_with_model_builder
This function was removed in Treelite 4.0; please use :py:meth:`~treelite.sklearn.import_model` instead.
python/treelite/sklearn/__init__.py:7
Methodinitialize
This step ccurs immediately before each build.
python/hatch_build.py:21
Functioninner_f
(*args: Any, **kwargs: Any)
python/treelite/util.py:117
Methodinput_type
Input type
python/treelite/model.py:58
Methodis_recognized_key
src/model_loader/detail/xgboost_json/delegated_handler.cc:331
Methodis_recognized_key
\brief Check if a given key is recognized by the handler * \param key Key to look up */
src/model_loader/detail/xgboost_json/delegated_handler.h:185
Methodis_root
src/model_loader/xgboost_legacy.cc:232
Methodkey
src/model_loader/detail/xgboost_json/sax_adapters.cc:133
Functionload_lightgbm_model
Load a tree ensemble model from a LightGBM model file. Parameters ---------- filename : Path to model file Returns
python/treelite/frontend.py:147
Functionload_xgboost_model
Load a tree ensemble model from XGBoost model, stored using JSON or UBJSON format. Parameters ---------- filename : Path to
python/treelite/frontend.py:60
← previousnext →501–600 of 686, ranked by callers