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
write model as byte array without using "write model operator" in process
siamak_want
Member Posts: 98 Contributor II
in Help
Hi Forum,
I want to write a clustering/classification model which is produced as the result of an RM process running in my own application. Using "write model" operator in the process, is not work for me, because "write model", writes the model in a given local path and I want to write it down as a byte[]. So I wrote the following code:
any idea on this topic would be appreciated.
I want to write a clustering/classification model which is produced as the result of an RM process running in my own application. Using "write model" operator in the process, is not work for me, because "write model", writes the model in a given local path and I want to write it down as a byte[]. So I wrote the following code:
I doubt that my way is the right way of doing this, so please help me if there is any idea...
public static byte[] RapidMinerModeltobytes(Model model) throws IOException{
byte[] buff;
buff = ((model.toString()).getBytes());
return buff;
}
any idea on this topic would be appreciated.
0
Answers
you could use: Regards,
Marco