Skip to content

Commit

Permalink
Refactor package location of aggregators
Browse files Browse the repository at this point in the history
  • Loading branch information
ashelkovnykov committed May 7, 2020
1 parent e0c17ac commit ca76366
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import org.apache.spark.serializer.KryoSerializer
import org.apache.spark.sql.SparkSession
import org.apache.spark.SparkConf

import com.linkedin.photon.ml.aggregators._
import com.linkedin.photon.ml.data.{GameDatum, LabeledPoint, LocalDataset}
import com.linkedin.photon.ml.function._
import com.linkedin.photon.ml.function.glm.{HessianVectorAggregator, ValueAndGradientAggregator}
import com.linkedin.photon.ml.model.Coefficients
import com.linkedin.photon.ml.normalization.NormalizationContext
import com.linkedin.photon.ml.optimization._
Expand Down Expand Up @@ -52,6 +52,8 @@ object SparkSessionConfiguration {
classOf[GeneralizedLinearModel],
classOf[GeneralizedLinearOptimizationProblem[_]],
classOf[GLMOptimizationConfiguration],
classOf[HessianDiagonalAggregator],
classOf[HessianMatrixAggregator],
classOf[HessianVectorAggregator],
classOf[LinearSubspaceProjector],
classOf[LabeledPoint],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ package com.linkedin.photon.ml.function
import breeze.linalg.{DenseMatrix, Vector}
import org.apache.spark.rdd.RDD

import com.linkedin.photon.ml.aggregators._
import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.{HessianDiagonalAggregator, HessianMatrixAggregator, HessianVectorAggregator, PointwiseLossFunction, ValueAndGradientAggregator}
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.model.{Coefficients => ModelCoefficients}
import com.linkedin.photon.ml.normalization.NormalizationContext
import com.linkedin.photon.ml.optimization.RegularizationType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ package com.linkedin.photon.ml.function

import breeze.linalg.{DenseMatrix, Vector}

import com.linkedin.photon.ml.aggregators._
import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.{HessianDiagonalAggregator, HessianMatrixAggregator, HessianVectorAggregator, PointwiseLossFunction, ValueAndGradientAggregator}
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.model.{Coefficients => ModelCoefficients}
import com.linkedin.photon.ml.normalization.NormalizationContext
import com.linkedin.photon.ml.optimization.RegularizationType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.photon.ml.function.glm
package com.linkedin.photon.ml.aggregators

import breeze.linalg._
import org.apache.spark.rdd.RDD

import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.util.{BroadcastWrapper, PhotonBroadcast, PhotonNonBroadcast}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.photon.ml.function.glm
package com.linkedin.photon.ml.aggregators

import breeze.linalg._
import org.apache.spark.rdd.RDD

import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.util.{BroadcastWrapper, PhotonBroadcast, PhotonNonBroadcast}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.photon.ml.function.glm
package com.linkedin.photon.ml.aggregators

import breeze.linalg.{Vector, axpy}
import org.apache.spark.rdd.RDD

import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.normalization.NormalizationContext
import com.linkedin.photon.ml.util.{BroadcastWrapper, PhotonBroadcast, PhotonNonBroadcast}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.linkedin.photon.ml.function.glm
package com.linkedin.photon.ml.aggregators

import breeze.linalg.{DenseVector, Vector, axpy}
import org.apache.spark.rdd.RDD

import com.linkedin.photon.ml.data.LabeledPoint
import com.linkedin.photon.ml.function.glm.PointwiseLossFunction
import com.linkedin.photon.ml.normalization.NormalizationContext
import com.linkedin.photon.ml.util.{BroadcastWrapper, PhotonBroadcast, PhotonNonBroadcast}

Expand Down

0 comments on commit ca76366

Please sign in to comment.