Skip to content
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

Make using accept classifiers: easy to use for pipeline models #448

Open
danyaljj opened this issue Nov 9, 2016 · 0 comments
Open

Make using accept classifiers: easy to use for pipeline models #448

danyaljj opened this issue Nov 9, 2016 · 0 comments

Comments

@danyaljj
Copy link
Member

danyaljj commented Nov 9, 2016

Currently this is how we do pipeline:

object ClassifierLayer1 extends Learnable (node) {
   def label = labelProperty1
   def feature = using(property2, property3,...) 
 }

object ClassifierLayer2 extends Learnable (node) {
   def label = labelProperty2
   def feature = using(classifier1Labels, ,...) // using the prediction of the classifier in the previous layer 
 }

// defined in data-model 
val classifier1Labels = new Property(node){  x: Type => ClassifierLayer1(x)  }

But we should be able to skip the definition of the extra property classifier1Labels and just do:

object ClassifierLayer1 extends Learnable (node) {
   def label = labelProperty1
   def feature = using(property2, property3,...) 
 }

object ClassifierLayer2 extends Learnable (node) {
   def label = labelProperty2
   def feature = using(ClassifierLayer1, ,...) 
}

This is slightly trickier when the type of the node parameters for the two classifiers are not the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant