Modifier and Type | Method and Description |
---|---|
static SimpleFMFormat |
get()
Returns an instance of this class.
|
<U,I> PreferenceFM<U,I> |
load(InputStream in,
FastUserIndex<U> users,
FastItemIndex<I> items)
Loads a factorisation machine from an input stream.
|
<U,I> void |
save(PreferenceFM fm,
OutputStream out)
Saves a factorisation machine in an output stream.
|
public static SimpleFMFormat get()
public <U,I> void save(PreferenceFM fm, OutputStream out) throws IOException
FMFormat
save
in interface FMFormat
U
- user typeI
- item typefm
- factorisation machine for recommendation tasksout
- output stream where the factorisation machine is writtenIOException
- when I/O problemspublic <U,I> PreferenceFM<U,I> load(InputStream in, FastUserIndex<U> users, FastItemIndex<I> items) throws IOException
FMFormat
load
in interface FMFormat
U
- type of usersI
- type of itemsin
- input streamusers
- user indexitems
- item indexIOException
- when I/O problemsCopyright © 2016. All rights reserved.