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
"Hooks in operators - extension of existing operators"
Hello everybody,
I have 2 questions regarding extension of existing operators:
1) I need to persist performance operator result into the DB. I guess this can be done by persisting PerformanceVector object, is it correct? Currently I've implemented it by extending Performance operator, but I'm not particularly happy with the solution.
2) I need to persist correct/wrong classifications (done in Performance operator) along with input data (Example object) attribute in the DB. What would be the best way to do this? I've digged RM src a bit and found no meaningful way on how to place hooks in appropriate places, extension of Performance related classes looks very ugly solution, while some CGLIB magic seems not so possible as I'm not sure I'll be able to replace original objects with proxies, while ByteCodeInstrumentation is an overkill. Any solutions/suggestions, maybe I've overlooked something?
Best regards,
Andrey
I have 2 questions regarding extension of existing operators:
1) I need to persist performance operator result into the DB. I guess this can be done by persisting PerformanceVector object, is it correct? Currently I've implemented it by extending Performance operator, but I'm not particularly happy with the solution.
2) I need to persist correct/wrong classifications (done in Performance operator) along with input data (Example object) attribute in the DB. What would be the best way to do this? I've digged RM src a bit and found no meaningful way on how to place hooks in appropriate places, extension of Performance related classes looks very ugly solution, while some CGLIB magic seems not so possible as I'm not sure I'll be able to replace original objects with proxies, while ByteCodeInstrumentation is an overkill. Any solutions/suggestions, maybe I've overlooked something?
Best regards,
Andrey
Tagged:
0
Answers
instead of extending the performance operator, you should create a new operator which gets a Performance Vector IOObject as input and writes it to the database.
2) What exactly do you mean? Do you simply want to store if a prediction is correct? Maybe the Generate Attributes operator is useful for you. See the attached process.
Best, Marius