Skip to content

write_class_mlpWriteClassMlpWriteClassMlpwrite_class_mlpT_write_class_mlp🔗

Short description🔗

write_class_mlpWriteClassMlpWriteClassMlpwrite_class_mlpT_write_class_mlp — Write a multilayer perceptron to a file.

Signature🔗

write_class_mlp( class_mlp MLPHandle, filename.write FileName )void WriteClassMlp( const HTuple& MLPHandle, const HTuple& FileName )static void HOperatorSet.WriteClassMlp( HTuple MLPHandle, HTuple fileName )def write_class_mlp( mlphandle: HHandle, file_name: str ) -> None

Herror T_write_class_mlp( 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)

void HClassMlp.WriteClassMlp( string fileName )

Description🔗

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

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

MLPHandleMLPHandlemlphandle (input_control) class_mlp → (handle)HTuple (HHandle)HClassMlp, HTuple (IntPtr)HHandleHtuple (handle)

MLP handle.

FileNamefileNamefile_name (input_control) filename.write → (string)HTuple (HString)HTuple (string)strHtuple (char*)

File name.

File extension: .gmc

Result🔗

If the parameters are valid, the operator write_class_mlpWriteClassMlp returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

train_class_mlpTrainClassMlp

Possible successors

clear_class_mlpClearClassMlp

See also

create_class_mlpCreateClassMlp, read_class_mlpReadClassMlp, write_samples_class_mlpWriteSamplesClassMlp

Module🔗

Foundation