bsmart.ml package
Submodules
bsmart.ml.ml module
Machine Learning utility routines for BSMArt; aim is these can either be imported by a scan or by external programs to load/create networks used by the scan.
- class bsmart.ml.ml.BSMNetwork(*args: Any, **kwargs: Any)[source]
Bases:
ModuleTemplate for user-defined networks. The only restriction is that we always pass inputs in the form of a dictionary to have a common interface.
- class bsmart.ml.ml.BasicDiscriminator(*args: Any, **kwargs: Any)[source]
Bases:
BSMNetwork
- class bsmart.ml.ml.BasicRegressor(*args: Any, **kwargs: Any)[source]
Bases:
BSMNetworkNeural network mapping to one output layer
bsmart.ml.mls_NN module
Helper functions for the xBit MLS scan
bsmart.ml.seed_points module
An algorithm for choosing a number of initial points to launch a scan, based on an already scored sample.
- bsmart.ml.seed_points.select_seeds(coords: numpy.ndarray, nlls: numpy.ndarray, nseeds: int = 10, CUTOFF_MULTIPLIER: float = 100.0, SCALE_METHOD: str = 'minmax', EPSILON: float = 0.1, MIN_SAMPLES: int = 10, ALPHA: float = 0.7) numpy.ndarray[source]
Returns a list of the original ids of the points
If they come from a dataframe they can be read off using df.iloc[] If they come from a numpy array then it’s just coords[] and nlls[] that are wanted.