- vetiver.pin_read_write.vetiver_pin_write(board, model: vetiver.vetiver_model.VetiverModel, versioned: bool = True)#
Pin a trained VetiverModel along with other model metadata.
board – A pin board, created by pins.board_folder() or another board_ function.
model (vetiver.VetiverModel) – VetiverModel to be written to board
versioned (bool) – Whether or not the pin should be versioned
>>> import vetiver >>> from pins import board_temp >>> model_board = board_temp(versioned = True, allow_pickle_read = True) >>> X, y = vetiver.get_mock_data() >>> model = vetiver.get_mock_model().fit(X, y) >>> v = vetiver.VetiverModel(model = model, model_name = "my_model", ptype_data = X) >>> vetiver.vetiver_pin_write(model_board, v)