Project: springxd
Issue XD-1420: Create a JPMML module that will evaluate a model.
A analytical model should be evaluated as a processor in a stream. The model evaluation will take the input variables from a Tuple and output variable will be placed into the tuple as well. A strawman of the stream definition can be stream create --definition " SOURCE | jpmml ‘fraud-detection’ | PROC1 … | PROCN " --name stream1 Using profiles and playing all implementations of the analytical model in the same module lib directory, it maybe possible to select one of multiple implementations in the form " SOURCE | analytic --library=jpmml --name=‘fraud-detection’ | PROC1 … | PROCN " such that the core module name is the same but parameterized by what library type to use. This may be problematic in that different libraries may have incompatible dependencies. The analytical model can define the names of input and output fields, so at a minimum a name is required, however to easily adapt a given analytic model evaluation to a specific source modules output, it seems desirable to specify which fields are to be used as input, overriding the names of the input fields could be done in a manner such as jpmml –name=linear-regresssion –inputFields=a,b,c
Story points: 8