public interface FactorizationFormat
Modifier and Type | Method and Description |
---|---|
<U,I> Factorization<U,I> |
load(InputStream in,
FastUserIndex<U> uIndex,
FastItemIndex<I> iIndex)
Loads a matrix from a compressed input stream.
|
<U,I> void |
save(Factorization<U,I> factorization,
OutputStream out)
Saves this matrix factorization to a compressed output stream.
|
<U,I> Factorization<U,I> load(InputStream in, FastUserIndex<U> uIndex, FastItemIndex<I> iIndex) throws IOException
U
- type of the usersI
- type of the itemsin
- input streamuIndex
- fast user indexiIndex
- fast item indexIOException
- when IO error<U,I> void save(Factorization<U,I> factorization, OutputStream out) throws IOException
U
- type of the usersI
- type of the itemsfactorization
- factorizationout
- output streamIOException
- when IO errorCopyright © 2016. All rights reserved.