2
$\begingroup$

I want to use DBN to reduce the 41 features of nslkdd dataset after transforming nominal data to numeric the number of features increases from 41 to 121 . I used 3 RBMs (121-50-10) now I want to know the 10 selected features i.e know their names to put them as an input to the classifier. how can I do it?

$\endgroup$
  • $\begingroup$ I have edited your question a little to make it easier to read. In general, it is helpful to include a little more information to allow people to understand the context. E.g. I did not know what the NSLKDD dataset was. Links are also good, but your question should contain enough information to get an answer, minimising time users must spend looking at other resources. $\endgroup$ – n1k31t4 Jun 12 '18 at 10:44
0
$\begingroup$

In general you are extracting/creating 10 features that scan theoretically recreate the input i.e. the 41 features. The features on their own may not necessarily make a lot of sense and (depending on the dataset) may not be easily interpretable. One could draw a comparison to Principal Component Analysis and the result components as features.

One benefit of using Deep Belief Nets to pre-train your model and encode features is that the data must not be labelled. This leads to the final point, which is that your 10 features must not necessarily have names. You can just call them e.g. feature1, feature2, ..., feature10.

If you are having problems with the actual code and the way to push the 10 features further into the classifier, I would suggest you provide the code that you have so far and add more detail regarding your exact problem.

$\endgroup$
  • $\begingroup$ I want to know the names of the 10 selected feature to remove the rest from my dataset $\endgroup$ – user Jun 12 '18 at 12:25
  • 1
    $\begingroup$ The features are not those selected from the original 41, they are combinations of them! You cannot just remove them from the original input. $\endgroup$ – n1k31t4 Jun 12 '18 at 12:34
  • $\begingroup$ ah ok and I must change the nominal features to numeric before putting them to the DBN? $\endgroup$ – user Jun 12 '18 at 12:40
  • $\begingroup$ Inputs need to be numeric, yes. But that doesn't strictly have anything to do with the actual names themselves - the data itself must be numeric. $\endgroup$ – n1k31t4 Jun 12 '18 at 12:43
  • $\begingroup$ the data must be unlabelled this mean I shoud remove the colomn 'class' from my dataset, how can I add it again to make the classification and the prediction. $\endgroup$ – user Jun 12 '18 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.