MagpieFeatureGeneration

class mastml.legos.feature_generators.MagpieFeatureGeneration(dataframe, composition_feature, feature_types)[source]

Bases: object

Class to generate new features using Magpie data and dataframe containing material compositions

Args:

dataframe: (pandas dataframe), dataframe containing x and y data and feature names

composition_feature: (str), string denoting a chemical composition to generate elemental features from

feature_types: (list), list containing types of magpie features to include in the final dataframe. Options include [“composition_avg”, “arithmetic_avg”, “max”, “min”, “difference”, “elements”]. Specifying nothing will include all features.

Methods:

generate_magpie_features : generates magpie feature set based on compositions in dataframe

Args:

None

Returns:

dataframe: (dataframe) : dataframe containing magpie feature set

Methods Summary

generate_magpie_features()

Methods Documentation

generate_magpie_features()[source]