Deepity
Ultra-fast, SIMD-accelerated Predictive Coding
Loading...
Searching...
No Matches
DiscriminativePCLayer.h File Reference

Defines the single-layer implementation of a PC model. More...

#include <vector>
#include <stdexcept>
#include <random>
#include <memory>
#include <cstdlib>
#include <deepity/utils/Activations.h>
#include <deepity/layers/Layer.h>
#include <deepity/utils/MemoryArena.h>
#include <deepity/utils/AdamOptimizer.h>

Go to the source code of this file.

Classes

class  Deep::DiscriminativePCLayer

Namespaces

namespace  Deep
 This file exists to provide both Tensor.h and IComputeBackend.h with device types without introducing circular dependencies.

Detailed Description

Defines the single-layer implementation of a PC model.

This header includes implementations of state calculation, state updates, and learning.

Deep::DiscriminativePCLayer layer(2, 3, 1, 1e-6);
layer.ClampState({ 0.1f, 0.75f });
layer.CalculateState();
Defines the single-layer implementation of a PC model.
Definition DiscriminativePCLayer.h:50
Note
All members are stored as pointers except for the input itself.
Version
1.0
Date
2026-06-30
Author
Jack Rose