bartz.prepcovars.BinnerFactory

class bartz.prepcovars.BinnerFactory(*args, **kwargs)[source]

Callable that constructs a Binner from training predictors.

This is the type of the binner argument of bartz.Bart. A bare Binner subclass satisfies this protocol, as does functools.partial(BinnerSubclass, **subclass_kwargs).

__call__(X, *, key=None)[source]

Construct a Binner from X and an optional random key.

Return type:

Binner