I think you can output the schema of DataFrame which will be feed into the estimator such as LogisticRegression. The output array will be the encoded feature names corresponding the coefficients of the model.
Thanks Yanbo 2016-08-08 15:53 GMT-07:00 Cesar <ces...@gmail.com>: > > I have a data frame with four columns, label , feature_1, feature_2, > feature_3. Is there a simple way in the ML library to give me the weights > based in feature names? I can only get the weights, which make this simple > task complicated when one of my features is categorical. > > I am looking for something similar to what R output does (where it clearly > indicates which weight corresponds to each feature name, including > categorical ones). > > > > Thanks a lot ! > -- > Cesar Flores >