numcodecs_wasm_fourier_network
Classes:
-
FourierNetwork–Fourier network codec which trains and overfits a fourier feature neural
FourierNetwork
FourierNetwork(
fourier_features,
fourier_scale,
learning_rate,
mini_batch_size,
num_blocks,
num_epochs,
seed,
_version="0.1.0",
)
Fourier network codec which trains and overfits a fourier feature neural network on encoding and predicts during decoding.
The approach is based on the papers by Tancik et al. 2020 (https://dl.acm.org/doi/abs/10.5555/3495724.3496356) and by Huang and Hoefler 2020 (https://arxiv.org/abs/2210.12538).
| Parameters: |
|
|---|
Methods:
-
decode–Decode the data in
buf. -
encode–Encode the data in
buf. -
from_config–Instantiate the codec from a configuration
dict. -
get_config–Returns the configuration of the codec.
codec_id
class-attribute
instance-attribute
codec_id = 'fourier-network.rs'
decode
decode(buf, out=None)
Decode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
encode
encode(buf)
Encode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
from_config
classmethod
from_config(config)
get_config
get_config()
Returns the configuration of the codec.
numcodecs.registry.get_codec(config)
can be used to reconstruct this codec from the returned config.
| Returns: |
|
|---|