write_class_mlpT_write_class_mlpWriteClassMlpWriteClassMlpwrite_class_mlp (Operator)

Name

write_class_mlpT_write_class_mlpWriteClassMlpWriteClassMlpwrite_class_mlp — Write a multilayer perceptron to a file.

Signature

write_class_mlp( : : MLPHandle, FileName : )

Herror T_write_class_mlp(const Htuple MLPHandle, const Htuple FileName)

void WriteClassMlp(const HTuple& MLPHandle, const HTuple& FileName)

void HClassMlp::WriteClassMlp(const HString& FileName) const

void HClassMlp::WriteClassMlp(const char* FileName) const

void HClassMlp::WriteClassMlp(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteClassMlp(HTuple MLPHandle, HTuple fileName)

void HClassMlp.WriteClassMlp(string fileName)

def write_class_mlp(mlphandle: HHandle, file_name: str) -> None

Description

write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp writes the multilayer perceptron (MLP) MLPHandleMLPHandleMLPHandleMLPHandleMLPHandlemlphandle to the file given by FileNameFileNameFileNameFileNamefileNamefile_name. The default HALCON file extension for the MLP classifier is 'gmc'. write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp is typically called after the MLP has been trained with train_class_mlptrain_class_mlpTrainClassMlpTrainClassMlpTrainClassMlptrain_class_mlp. The MLP can be read with read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlpread_class_mlp. write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp does not write any training samples that possibly have been stored in the MLP. For this purpose, write_samples_class_mlpwrite_samples_class_mlpWriteSamplesClassMlpWriteSamplesClassMlpWriteSamplesClassMlpwrite_samples_class_mlp should be used.

Execution Information

Parameters

MLPHandleMLPHandleMLPHandleMLPHandleMLPHandlemlphandle (input_control)  class_mlp HClassMlp, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

MLP handle.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .gmc

Result

If the parameters are valid, the operator write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

train_class_mlptrain_class_mlpTrainClassMlpTrainClassMlpTrainClassMlptrain_class_mlp

Possible Successors

clear_class_mlpclear_class_mlpClearClassMlpClearClassMlpClearClassMlpclear_class_mlp

See also

create_class_mlpcreate_class_mlpCreateClassMlpCreateClassMlpCreateClassMlpcreate_class_mlp, read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlpread_class_mlp, write_samples_class_mlpwrite_samples_class_mlpWriteSamplesClassMlpWriteSamplesClassMlpWriteSamplesClassMlpwrite_samples_class_mlp

Module

Foundation