class SVDReg extends Error
The SVDReg
class works on the principle of Gradient Descent for minimizing
the error generated and L2 regularization, while predicting the missing value
in the matrix. This is obtained by the dot product of 'u(i)' and 'v(j)' vectors:
Dimensionality is reduced from 'n' features to 'k' factors.
predict (i, j) = u(i) dot v(j)
- Alphabetic
- By Inheritance
- SVDReg
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
calc_objf: Double
Calculate the value of the objective function after the 'u' and 'v' matrices are generated.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
factor: Unit
Factor the the input matrix 'a' to obtain the 'u' and the 'v' matrices.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flaw(method: String, message: String): Unit
Show the flaw by printing the error message.
Show the flaw by printing the error message.
- method
the method where the error occurred
- message
the error message
- Definition Classes
- Error
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
nz_sqmean: Double
Return the square root of the non-zero mean / k of the initial rating matrix.
-
def
predict(i: Int, j: Int): Double
Predict the value for given row and column.
Predict the value for given row and column.
- i
the row id
- j
the column id
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(h: Int): Double
Update the 'u' and 'v' matrix to minimze sum of squared error and return the mean sum of squared errors.
Update the 'u' and 'v' matrix to minimze sum of squared error and return the mean sum of squared errors.
- h
the current column to update
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )