renom_rg.api.interface

renom_rg.api.interface.regressor

Copyright 2019, Grid.

This source code is licensed under the ReNom Subscription Agreement, version 1.0. ReNom Subscription Agreement Ver. 1.0 ( https://www.renom.jp/info/license/index.html )

class renom_rg.api.interface.regressor. Regressor ( url = 'http://localhost' , port = '8080' )

Bases: object

This class allows you to pull model which trained on ReNomRG GUI Tool.

Parameters
  • url ( string ) – The url ReNomRG server running.

  • port ( string ) – The port number ReNomRG server running.

pull ( )

Pull trained weight from ReNomRG server. Trained weight will be downloaded into current directory.

Example

>>> from renom_rg.api.inference.regressor import Regressor
>>> regressor = Regressor()
>>> regressor.pull()
predict ( X )

Perform prediction to given data.

Parameters

X – Input data for prediction.

Example

>>> from renom_rg.api.inference.detector import Detector
>>> detector = Detector()
>>> detector.pull()
>>> print(detector.predict(X))
[[],
 [],
 :
 :
 :
 []]
property model_info

This function returns information of pulled model.

Example

>>> from renom_rg.api.inference.detector import Detector
>>> detector = Detector()
>>> detector.pull()
>>> print(detector.model_info)