The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Need help on using Metacost operator

ram_nit05ram_nit05 Member Posts: 12 Contributor II
edited November 2018 in Help
Hi,

Am trying to penalize the misclassification of rare categories in my model by using Metacost operator. However am facing some difficulty in including it in my current flow which starts with examplesource, and then has %xvalidation with libsvmlearner and operatorchain(with both model applier and classification performance).

If I include it within %xvalidation after libsvmlearner it says that the operator cannot take more than two nodes, and if I have Metacost in the operator chain before model applier, I get an error that it cannot take numerical attributes.

Can anybody help me with some link or example where I can get information on how to use this operator?

Thanks,
Ram

Answers

  • keithkeith Member Posts: 157 Maven
    Try taking a look at 02_Learner\18_SimpleCostSensitiveLearning.xml in the RM Samples directory.  It shows an example of how to combine XValidation with MetaCost.

    One tip: if you need to do two steps in a place that only allows one node, put them both inside an OperatorChain node.  To the node it's embedded in, it will look like a single node, even if you have 5 different steps inside of it.

    Keith
  • ram_nit05ram_nit05 Member Posts: 12 Contributor II
    Thanks Keith,
    Ramkumar
Sign In or Register to comment.