| 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
FMFormatsave in interface FMFormatU - 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
FMFormatload in interface FMFormatU - type of usersI - type of itemsin - input streamusers - user indexitems - item indexIOException - when I/O problemsCopyright © 2016. All rights reserved.