TessemNN

class pyarts3.arts.TessemNN(*args, **kwargs)

A TESSEM2 neural-network model.

The horizontal- and vertical-polarization networks are stored separately. Use tessem_nnReadAscii() to read the original TESSEM ASCII parameter files.

Workspace methods that can generate TessemNN

  • tessem_nnReadAscii()

Workspace variables of type TessemNN

  • tessem_neth

  • tessem_netv

Overview

Method

readxml()

Read variable from file.

Method

savexml()

Saves variable to file.

Static Method

from_ascii()

Read an original TESSEM2 neural-network parameter file

Static Method

fromxml()

Create variable from file.

Vector

b1

Hidden-layer biases

Vector

b2

Output-layer biases

Index

nb_cache

Number of hidden neural-network nodes

Index

nb_inputs

Number of neural-network inputs

Index

nb_outputs

Number of neural-network outputs

Matrix

w1

Hidden-layer weights

Matrix

w2

Output-layer weights

Vector

x_max

Maximum values used to scale the inputs

Vector

x_min

Minimum values used to scale the inputs

Vector

y_max

Maximum values used to scale the outputs

Vector

y_min

Minimum values used to scale the outputs

Operator

__call__()

Evaluate the neural network

Operator

__eq__()

Return self==value.

Operator

__format__()

__format__(self, arg: str, /) -> str

Operator

__ge__()

Return self>=value.

Operator

__gt__()

Return self>value.

Operator

__hash__()

Return hash(self).

Operator

__init__()

__init__(self, arg: pyarts3.arts.TessemNN) -> None

Operator

__le__()

Return self<=value.

Operator

__lt__()

Return self<value.

Operator

__ne__()

Return self!=value.

Operator

__repr__()

__repr__(self) -> str

Operator

__str__()

__str__(self) -> str

Constructors

__init__(self) None
__init__(self) None
__init__(self, arg: pyarts3.arts.TessemNN) None

Methods

readxml(self, file: str) str

Read variable from file.

Parameters:

file (str) – A file that can be read.

Raises:

RuntimeError – For any failure to read.

Returns:

file – The file path found (may differ from input due to environment variables).

Return type:

str

savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str

Saves variable to file.

Parameters:
  • file (str) – The path to which the file is written. Note that several of the options might modify the name or write more files.

  • type (str, optional) – Type of file to save. See FileType for options. Defaults is “ascii”.

  • clobber (bool, optional) – Overwrite existing files or add new file with modified name? Defaults is True.

Raises:

RuntimeError – For any failure to write.

Returns:

file – The file saved. May differ from input.

Return type:

str

Static Methods

from_ascii(filename: str) pyarts3.arts.TessemNN

Read an original TESSEM2 neural-network parameter file

fromxml(file: str) pyarts3.arts.TessemNN

Create variable from file.

Parameters:

file (str) – A file that can be read

Raises:

RuntimeError – For any failure to read.

Returns:

artstype – The variable created from the file.

Return type:

T

Attributes

b1: Vector

Hidden-layer biases

b2: Vector

Output-layer biases

nb_cache: Index

Number of hidden neural-network nodes

nb_inputs: Index

Number of neural-network inputs

nb_outputs: Index

Number of neural-network outputs

w1: Matrix

Hidden-layer weights

w2: Matrix

Output-layer weights

x_max: Vector

Maximum values used to scale the inputs

x_min: Vector

Minimum values used to scale the inputs

y_max: Vector

Maximum values used to scale the outputs

y_min: Vector

Minimum values used to scale the outputs

Operators

__call__(self, input: pyarts3.arts.Vector) pyarts3.arts.Vector

Evaluate the neural network

__eq__(value, /)

Return self==value.

__format__(self, arg: str, /) str
__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__init__(self) None
__init__(self) None
__init__(self, arg: pyarts3.arts.TessemNN) None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__repr__(self) str
__str__(self) str