Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
explicitly propagating execution context
  • Loading branch information
Chris Wewerka committed Nov 7, 2018
commit 736144ec00ee3f85ab82ec090c75318986c1d7b0
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract class LAlgorithm[PD, M : ClassTag, Q, P]
}

def predictBase(localBaseModel: Any, q: Q)(implicit ec: ExecutionContext): Future[P] = {
predict(localBaseModel.asInstanceOf[M], q)
predict(localBaseModel.asInstanceOf[M], q)(ec)
}

/** Implement this method to produce a prediction from a query and trained
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ abstract class P2LAlgorithm[PD, M: ClassTag, Q: ClassTag, P]
}

def predictBase(bm: Any, q: Q)(implicit ec: ExecutionContext): Future[P] =
predict(bm.asInstanceOf[M], q)
predict(bm.asInstanceOf[M], q)(ec)

/** Implement this method to produce a prediction from a query and trained
* model.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abstract class PAlgorithm[PD, M, Q, P]
throw new NotImplementedError("batchPredict not implemented")

def predictBase(baseModel: Any, query: Q)(implicit ec: ExecutionContext): Future[P] = {
predict(baseModel.asInstanceOf[M], query)
predict(baseModel.asInstanceOf[M], query)(ec)
}

/** Implement this method to produce a prediction from a query and trained
Expand Down