rfwtools.feature_set
The module encapsulates the functionality around computed features of an example set.
Typically a FeatureSet is created by DataSet.produce_feature_set(). Once created the class provides some tools for easy dimensionality reduction and visualization.
Basic Usage Examples:
Creation through a DataSet workflow:
from rfwtools.data_set import DataSet
from rfwtools.extractor.autoregressive import autoregressive_extractor
ds = DataSet(label_files=['my-sample-labels.txt'])
ds.produce_example_set()
ds.produce_feature_set(autoregressive_extractor)
fs = ds.feature_set
fs.do_pca_reduction(n_components=10)
fs.display_2d_scatterplot(query="zone=='1L25'", title="1L25 PCA subset")
fs.save_csv("my_feature_set.csv")
Loading from file:
from rfwtools.feature_set import FeatureSet
fs = FeatureSet()
fs.load_csv("my_feature_set.csv")
fs.do_pca_reduction()
fs.display_2d_scatterplot(query="zone=='1L25'", title="1L25 PCA subset")
Classes
|
A class for managing common operations on a collection of labeled faults and associated features |