Skip to content

Commit 3c53183

Browse files
authored
Merge pull request #19 from mandar2812/branch-1.4.x
Merging Branch 1.4.x
2 parents 510e358 + 6ed5ff5 commit 3c53183

File tree

128 files changed

+216
-284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+216
-284
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ build/*.jar
1212
.settings
1313
.cache
1414
target/*
15+
dynaml-core/target/*
16+
dynaml-examples/target/*
17+
dynaml-pipes/target/*
1518
.DS_Store
1619
release.properties
1720
*.log

README.md

Lines changed: 16 additions & 12 deletions

build.sbt

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import sbt._
22
import java.io.File
33

4+
import sbtbuildinfo.BuildInfoPlugin.autoImport._
5+
46
maintainer := "Mandar Chandorkar <[email protected]>"
57

68
packageSummary := "Scala Library/REPL for Machine Learning Research"
@@ -10,16 +12,17 @@ packageDescription := "DynaML is a scala library/repl for implementing and worki
1012
"which can be extended easily to implement advanced models for small and large scale applications.\n\n"+
1113
"But the library can also be used as an educational/research tool for data analysis."
1214

15+
val mainVersion = "v1.4-beta.8"
16+
1317
val dataDirectory = settingKey[File]("The directory holding the data files for running example scripts")
1418

15-
lazy val commonSettings = Seq(
16-
name := "DynaML",
19+
val baseSettings = Seq(
1720
organization := "io.github.mandar2812",
18-
version := "v1.4-beta.7",
1921
scalaVersion in ThisBuild := "2.11.7",
20-
mainClass in Compile := Some("io.github.mandar2812.dynaml.DynaML"),
21-
fork in run := true,
22-
resolvers in ThisBuild ++= Seq("jzy3d-releases" at "http://maven.jzy3d.org/releases"),
22+
resolvers in ThisBuild ++= Seq("jzy3d-releases" at "http://maven.jzy3d.org/releases")
23+
)
24+
25+
lazy val commonSettings = Seq(
2326
libraryDependencies ++= Seq(
2427
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "compile",
2528
"org.scala-lang" % "scala-library" % scalaVersion.value % "compile",
@@ -42,15 +45,42 @@ lazy val commonSettings = Seq(
4245
"com.quantifind" % "wisp_2.11" % "0.0.4" % "compile",
4346
"org.jzy3d" % "jzy3d-api" % "0.9.1" % "compile",
4447
"com.lihaoyi" % "ammonite-repl_2.11.7" % "0.5.8"
45-
),
46-
dataDirectory := new File("data/"),
47-
initialCommands in console := """io.github.mandar2812.dynaml.DynaML.run(banner="""" +
48-
target.value.getPath + """/universal/stage/conf/banner.txt");"""
48+
)
4949
)
5050

51+
lazy val pipes = (project in file("dynaml-pipes")).settings(baseSettings:_*)
52+
.settings(
53+
name := "dynaml-pipes",
54+
version := "1.0"
55+
)
56+
57+
lazy val core = (project in file("dynaml-core")).settings(baseSettings)
58+
.settings(commonSettings:_*)
59+
.enablePlugins(JavaAppPackaging, BuildInfoPlugin)
60+
.dependsOn(pipes)
61+
.settings(
62+
name := "dynaml-core",
63+
version := mainVersion
64+
)
65+
66+
lazy val examples = (project in file("dynaml-examples"))
67+
.settings(baseSettings:_*)
68+
.settings(commonSettings:_*)
69+
.settings(
70+
name := "dynaml-examples",
71+
version := "1.0"
72+
).dependsOn(pipes, core)
73+
5174
lazy val DynaML = (project in file(".")).enablePlugins(JavaAppPackaging, BuildInfoPlugin)
75+
.settings(baseSettings:_*)
5276
.settings(commonSettings: _*)
77+
.dependsOn(core, examples, pipes)
5378
.settings(
79+
//aggregate in update := false,
80+
name := "DynaML",
81+
version := mainVersion,
82+
fork in run := true,
83+
mainClass in Compile := Some("io.github.mandar2812.dynaml.DynaML"),
5484
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
5585
buildInfoPackage := "io.github.mandar2812.dynaml.repl",
5686
buildInfoUsePackageAsPath := true,
@@ -67,6 +97,10 @@ lazy val DynaML = (project in file(".")).enablePlugins(JavaAppPackaging, BuildIn
6797
// -J params will be added as jvm parameters
6898
"-J-Xmx2048m",
6999
"-J-Xms64m"
70-
)
71-
)
100+
),
101+
dataDirectory := new File("data/"),
102+
initialCommands in console := """io.github.mandar2812.dynaml.DynaML.run(banner="""" +
103+
target.value.getPath + """/universal/stage/conf/banner.txt");"""
104+
105+
)
72106

src/main/scala/io/github/mandar2812/dynaml/pipes/DynaMLPipe.scala renamed to dynaml-core/src/main/scala-2.11/io/github/mandar2812/dynaml/DynaMLPipe.scala

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
1-
/*
2-
Licensed to the Apache Software Foundation (ASF) under one
3-
or more contributor license agreements. See the NOTICE file
4-
distributed with this work for additional information
5-
regarding copyright ownership. The ASF licenses this file
6-
to you under the Apache License, Version 2.0 (the
7-
"License"); you may not use this file except in compliance
8-
with the License. You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing,
13-
software distributed under the License is distributed on an
14-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
KIND, either express or implied. See the License for the
16-
specific language governing permissions and limitations
17-
under the License.
18-
* */
19-
package io.github.mandar2812.dynaml.pipes
1+
package io.github.mandar2812.dynaml
202

3+
import scala.collection.mutable.{MutableList => ML}
214
import breeze.linalg.DenseVector
225
import io.github.mandar2812.dynaml.evaluation.RegressionMetrics
236
import io.github.mandar2812.dynaml.models.ParameterizedLearner
247
import io.github.mandar2812.dynaml.models.gp.AbstractGPRegressionModel
25-
import io.github.mandar2812.dynaml.optimization.{
26-
CoupledSimulatedAnnealing, GPMLOptimizer,
27-
GloballyOptWithGrad, GridSearch}
28-
import io.github.mandar2812.dynaml.utils
8+
import io.github.mandar2812.dynaml.optimization.{CoupledSimulatedAnnealing, GPMLOptimizer, GloballyOptWithGrad, GridSearch}
9+
import io.github.mandar2812.dynaml.pipes.{DataPipe, StreamDataPipe}
2910
import org.apache.log4j.Logger
3011

31-
import scala.collection.mutable.{MutableList => ML}
32-
3312
/**
3413
* @author mandar2812 datum 3/2/16.
3514
*
@@ -325,7 +304,7 @@ object DynaMLPipe {
325304
* Takes a base pipe and creates a parallel pipe by duplicating it.
326305
*
327306
* @param pipe The base data pipe
328-
* @return a [[ParallelPipe]] object.
307+
* @return a [[io.github.mandar2812.dynaml.pipes.ParallelPipe]] object.
329308
* */
330309
def duplicate[Source, Destination](pipe: DataPipe[Source, Destination]) =
331310
DataPipe(pipe, pipe)

src/main/scala/io/github/mandar2812/dynaml/graphutils/CausalEdge.scala renamed to dynaml-core/src/main/scala-2.11/io/github/mandar2812/dynaml/graph/CausalEdge.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the
1616
specific language governing permissions and limitations
1717
under the License.
1818
* */
19-
package io.github.mandar2812.dynaml.graphutils
19+
package io.github.mandar2812.dynaml.graph
2020

2121
import com.tinkerpop.frames.{Property, OutVertex, InVertex, EdgeFrame}
2222

0 commit comments

Comments
 (0)