> 2012/11/12 <[email protected]>: > > Actually I would like to name the features. Sorry for the confusion! > > What do you want to use it for? If you have a sample x (a row from X) > and a list of n_features names for your features, then > > zip(names_of_features, x) > > will give you a list of (name, value) pairs for the features of x.
My name of the features are stored in a list, let's say dataDescrs_name = [feature_1,feature_2, feature_3] My features are stored in a numpy array dataDescrs_array = [[1.2 2.3 3.4] ...] i.e. zip(dataDescrs_name,dataDescrs_array) will do the job? I have to admit that I have lost the overview in my large dataset :) Cheers & Thanks, Paul This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and delete the message and any attachment from your system. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not accept liability for any omissions or errors in this message which may arise as a result of E-Mail-transmission or for damages resulting from any unauthorized changes of the content of this message and any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not guarantee that this message is free of viruses and does not accept liability for any damages caused by any virus transmitted therewith. Click http://www.merckgroup.com/disclaimer to access the German, French, Spanish and Portuguese versions of this disclaimer. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
