Apply Model Problem?

srt19170
srt19170 New Altair Community Member
edited November 5 in Community Q&A
I've a curious behavior in RapidMiner.

I have a process that trains a model, saves the model, and then tests the model on some test data.  I have another process that is identically the same, except that it skips the training step and simply reads in the saved model before applying it to the test data.

The two processes produce different results, i.e., the performance on identical test data is different depending upon whether I'm using the model right out of the modeling operator or if I'm using the saved model.

The model I'm using is a Vote Model with three sub-models, a Neural Net, an SVM and a W-SMOreg, if that's relevant.

Any idea why the behavior should be different?  Is there a loss of accuracy when writing & then reading the model?  My differences seem fairly dramatic for that to be the cause, but I suppose it is possible.

Thanks for any help!

Scott Turner
Tagged:

Answers

  • srt19170
    srt19170 New Altair Community Member
    Never mind.  The train & test is failing to write out the model for some reason.  Annoyingly, it's failing silently.  There's nothing in the log file to indicate a problem.
  • land
    land New Altair Community Member
    Hi Scott,
    that's really annoying. Can you show me the process? I would like to fix that behavior.

    Greetings,
    Sebastian
  • Grimace
    Grimace New Altair Community Member
    Hey, i have been getting this same thing occurring with my process.  I have a separate process which trains the neural network.  In the process I am experiencing to issue, i load two CSV files, which other than an extra flag attribute tacked on the end of each sample, they are binary equal.  I remove the flag  attribute before applying the model.  The same model is used to apply both example sets.  The results from each apply model do not match.  I can email process, models and data to assist.

    Any insight to whats causing this would be appreciated.
  • land
    land New Altair Community Member
    Hi,
    thanks, I will send you my mail by pm.

    Greetings,
      Sebastian
  • Danyo83
    Danyo83 New Altair Community Member
    Hi,

    I have exactly the same problem. Besides writing and applying the model what failed, I have also tried to rebuild the process by recalling the before saved weights. The attributes were then applied by a classifier. The performance differed to the performance of the initial Feature Selection Process performance on the testset altough the data was identical.

    Can you help me or can I send you my files?

    Thanks in advance

    Daniel