-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialization for FeatureGeneratorStage #300
Serialization for FeatureGeneratorStage #300
Conversation
Codecov Report
@@ Coverage Diff @@
## mt/function-arguments-merged #300 +/- ##
================================================================
- Coverage 86.33% 85.94% -0.39%
================================================================
Files 325 325
Lines 10511 10576 +65
Branches 338 548 +210
================================================================
+ Hits 9075 9090 +15
- Misses 1436 1486 +50
Continue to review full report at Codecov.
|
@@ -138,6 +138,8 @@ class OpWorkflowModelReader(val workflowOpt: Option[OpWorkflow]) extends MLReade | |||
val originalStage = workflow.stages.find(_.uid == stageUid) | |||
originalStage match { | |||
case Some(os) => new OpPipelineStageReader(os).loadFromJson(j, path = path).asInstanceOf[OPStage] | |||
case None if stageUid.startsWith("FeatureGeneratorStage_") => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classOf[FeatureGeneratorStage].getSimpleName instead of string
aggregator = new CustomMonoidAggregator[O](associativeFn = fn, zero = zero)(tto) | ||
this | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are these deleted? they have an important function
@@ -181,6 +181,9 @@ class FeatureBuilderTest extends FlatSpec with TestSparkContext { | |||
|
|||
} | |||
|
|||
object TestCustomMonoidAggregator extends CustomMonoidAggregator[Real](zero = Real.empty.v, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so people need to instantiate the class for the aggregation function?
object TestMonoidAggregator | ||
extends CustomMonoidAggregator[Real](None, (l, r) => (l -> r).map(breeze.linalg.max(_, _))) with Serializable | ||
|
||
object PassengerFeaturesTestLambdas { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you need the functions defined this way or is it a style thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that the new thing
@leahmcguire it's WIP, not for review yet ;) |
Superseeded by #309 |
Only saving to JSON