MCPcopy Index your code
hub / github.com/MaartenGr/BERTopic / get_params

Method get_params

bertopic/_bertopic.py:3821–3842  ·  view source on GitHub ↗

Get parameters for this estimator. Adapted from: https://github.com/scikit-learn/scikit-learn/blob/b3ea3ed6a/sklearn/base.py#L178 Arguments: deep: bool, default=True If True, will return the parameters for this estimator and

(self, deep: bool = False)

Source from the content-addressed store, hash-verified

3819 )
3820
3821 def get_params(self, deep: bool = False) -> Mapping[str, Any]:
3822 """Get parameters for this estimator.
3823
3824 Adapted from:
3825 https://github.com/scikit-learn/scikit-learn/blob/b3ea3ed6a/sklearn/base.py#L178
3826
3827 Arguments:
3828 deep: bool, default=True
3829 If True, will return the parameters for this estimator and
3830 contained subobjects that are estimators.
3831
3832 Returns:
3833 out: Parameter names mapped to their values.
3834 """
3835 out = dict()
3836 for key in self._get_param_names():
3837 value = getattr(self, key)
3838 if deep and hasattr(value, "get_params"):
3839 deep_items = value.get_params().items()
3840 out.update((key + "__" + k, val) for k, val in deep_items)
3841 out[key] = value
3842 return out
3843
3844 def _extract_embeddings(
3845 self,

Callers 5

test_get_paramsFunction · 0.95
__str__Method · 0.95
generate_readmeFunction · 0.80
save_ctfidf_configFunction · 0.80
save_configFunction · 0.80

Calls 1

_get_param_namesMethod · 0.95

Tested by 1

test_get_paramsFunction · 0.76