molpred package
Subpackages
- molpred.data package
- Submodules
- molpred.data.column_specifier module
ColumnSpecifier
ColumnSpecifier.__init__()
ColumnSpecifier.categoric_names
ColumnSpecifier.features
ColumnSpecifier.features_and_targets
ColumnSpecifier.is_categoric()
ColumnSpecifier.is_feature()
ColumnSpecifier.is_numeric()
ColumnSpecifier.is_target()
ColumnSpecifier.names
ColumnSpecifier.numeric_names
ColumnSpecifier.targets
- molpred.data.common module
- molpred.data.features_and_targets module
FeaturesAndTargets
FeaturesAndTargets.__init__()
FeaturesAndTargets.binned_data
FeaturesAndTargets.binned_targets
FeaturesAndTargets.columns
FeaturesAndTargets.data
FeaturesAndTargets.feature_names
FeaturesAndTargets.features
FeaturesAndTargets.features_and_targets
FeaturesAndTargets.n_targets
FeaturesAndTargets.target_names
FeaturesAndTargets.targets
bin_targets()
- molpred.data.inchi_loader module
- molpred.data.train_test_split module
- Module contents
- molpred.model package
- Submodules
- molpred.model.base module
ModelBase
ModelBase.MODEL_EXT
ModelBase.__init__()
ModelBase.clear_caches()
ModelBase.config_get()
ModelBase.config_get_container()
ModelBase.image_subdirectory
ModelBase.initialize()
ModelBase.load()
ModelBase.param_get()
ModelBase.param_get_container()
ModelBase.predict()
ModelBase.predict_proba()
ModelBase.register()
ModelBase.save()
ModelBase.score_predictions()
ModelBase.train()
ModelBase.visualize_data()
ModelBase.visualize_prediction_metrics()
ModelBase.with_model_file_ext()
ModelType
get_model_class()
import_models()
- molpred.model.scoring module
- Module contents
Submodules
molpred.decorators module
Decorators
- molpred.decorators.caching_class(cls)[source]
Decorator for classes with caching methods decorated with @caching_method. This will add a “clear_caches” method that clears each caching methods private cache.
- Parameters:
cls – A class containing methods decorated with @caching_method.
- Returns:
The decorated class with a new “clear_caches” method for clearing the internal caches.
- molpred.decorators.caching_method(method)[source]
Decorator for a caching instance method that will re-use previous results when invoked with the same arguments. The equivalency is checked with the “is” operator complex types with the same value will still be considered different by the decorated method.
- Parameters:
method – The instance method to wrap.
- Returns:
The decorated instance method.
molpred.experiment module
molpred.plot module
Visualize data.
- class molpred.plot.CategoryCounter(data, target_name)[source]
Bases:
object
Count occurences of categorical data across different dimensions.
- molpred.plot.group_names_by_prefix(names)[source]
Group names by common prefixes when they follow the pattern “<prefix><integer>”. Such groups are expected to represent fingerprints.
- Parameters:
names – An iterable of names to group.
- Returns:
A generator over Pandas Series with the names of each group.
- molpred.plot.group_numeric_and_categoric(calc, features_and_targets)[source]
Group feature names by type and category group.
- Parameters:
calc – A feature calculator instance.
features_and_targets – A FeaturesAndTargets instance.
- Returns:
A generator over 2-tuples of Pandas series with feature names and a boolean to indicate if the names are numeric.
- molpred.plot.plot_features(path, calc, features_and_targets)[source]
Plot features generated by the given feature calculator.
- Parameters:
path – The output image page.
calc – A feature calculator instance.
features_and_targets – A FeaturesAndTargets instance with the features to plot.
Module contents
Package stub.