Example #1
0
 public void removeModel(UUID uuid) throws FOSException {
   try {
     manager.removeModel(uuid);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #2
0
 public void reconfigureModel(UUID uuid, ModelConfig modelConfig) throws FOSException {
   try {
     manager.reconfigureModel(uuid, modelConfig);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #3
0
 public UUID addModel(ModelConfig modelConfig, Model binary) throws FOSException {
   try {
     return manager.addModel(modelConfig, binary);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #4
0
 public void save(UUID uuid, String savepath) throws FOSException {
   try {
     manager.save(uuid, savepath);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #5
0
 public void close() throws FOSException {
   try {
     manager.close();
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #6
0
 public Model trainFile(ModelConfig modelConfig, String s) throws FOSException {
   try {
     return manager.trainFile(modelConfig, s);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #7
0
 public Model train(ModelConfig modelConfig, List<Object[]> objects) throws FOSException {
   try {
     return manager.train(modelConfig, objects);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #8
0
 public Map<UUID, ? extends ModelConfig> listModels() throws FOSException {
   try {
     return manager.listModels();
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #9
0
 public UUID addModel(ModelConfig modelConfig, @NotBlank ModelDescriptor descriptor)
     throws FOSException {
   try {
     return manager.addModel(modelConfig, descriptor);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #10
0
 @Override
 public void saveAsPMML(UUID uuid, String savePath, boolean compress) throws FOSException {
   try {
     manager.saveAsPMML(uuid, savePath, compress);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #11
0
 public void reconfigureModel(
     UUID uuid, ModelConfig modelConfig, @NotBlank ModelDescriptor descriptor)
     throws FOSException {
   try {
     manager.reconfigureModel(uuid, modelConfig, descriptor);
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }
Example #12
0
 public Scorer getScorer() throws FOSException {
   try {
     if (kryoScorer != null) {
       return kryoScorer;
     } else {
       return new FOSScorerAdapter(manager.getScorer());
     }
   } catch (RemoteException e) {
     throw new FOSException(e);
   }
 }