Skip to content

from_json

Load a model from the JSON document written by to_json. This is a class method.

Method call format

TBoostRegressor.from_json(data)

Parameters

data

Description

The output of to_json.

Possible types

string

Default value

Required parameter

Return value

A new, trained TBoostRegressor. The compatibility rules are those of from_bytes.

Usage examples

from t_boost import TBoostRegressor

with open("model.json") as f:
    model = TBoostRegressor.from_json(f.read())