-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added helper functions for Renjin compatibility layer
- Loading branch information
1 parent
d751dd4
commit d2d62f2
Showing
4 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,47 @@ | ||
//External Imports | ||
/* | ||
* External Imports | ||
* */ | ||
|
||
//Import breeze for linear algebra | ||
import breeze.linalg._ | ||
//Apache Spark for big data support | ||
import org.apache.spark.SparkContext | ||
import org.apache.spark.SparkConf | ||
//Load Wisp-Highcharts for plotting | ||
import com.quantifind.charts.Highcharts._ | ||
//Import spire implicits for definition of | ||
//fields, algebraic structures on primitive types | ||
import spire.implicits._ | ||
//DynaML imports | ||
/* | ||
* DynaML imports | ||
* */ | ||
import io.github.mandar2812.dynaml.analysis.VectorField | ||
//The pipes API | ||
import io.github.mandar2812.dynaml.pipes._ | ||
import io.github.mandar2812.dynaml.DynaMLPipe | ||
import io.github.mandar2812.dynaml.DynaMLPipe._ | ||
//Load the DynaML model api members | ||
import io.github.mandar2812.dynaml.models._ | ||
import io.github.mandar2812.dynaml.models.neuralnets._ | ||
import io.github.mandar2812.dynaml.models.svm._ | ||
import io.github.mandar2812.dynaml.models.lm._ | ||
//Utility functions | ||
import io.github.mandar2812.dynaml.utils | ||
//Kernels for GP,SVM models | ||
import io.github.mandar2812.dynaml.kernels._ | ||
//Shell examples | ||
import io.github.mandar2812.dynaml.examples._ | ||
import io.github.mandar2812.dynaml.pipes._ | ||
import io.github.mandar2812.dynaml.DynaMLPipe | ||
import io.github.mandar2812.dynaml.DynaMLPipe._ | ||
//Load neural net primitives | ||
import io.github.mandar2812.dynaml.models.neuralnets.TransferFunctions._ | ||
//The probability API | ||
import io.github.mandar2812.dynaml.probability._ | ||
//OpenML support | ||
import io.github.mandar2812.dynaml.openml.OpenML | ||
//Renjin imports | ||
import javax.script._ | ||
import org.renjin.script._ | ||
import org.renjin.sexp._ | ||
val r_engine_factory = new RenjinScriptEngineFactory() | ||
implicit val renjin = r_engine_factory.getScriptEngine() | ||
val r: String => SEXP = (s: String) => renjin.eval(s).asInstanceOf[SEXP] | ||
val R: java.io.File => SEXP = (f: java.io.File) => renjin.eval(f).asInstanceOf[SEXP] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters