Observed since 20 Oct, 18:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Alternating Conditional Exceptation with Neural Network
This repo contains experimental implementation of ace algorithm via neural network. It is shown by xiangxiang-xu that calculating optimal features by Alternating Conditional Expectation is equivalent to maximize H-score.
Three examples are provided ( one for continuous variable and the other twos are for discrete variable) and their results are the same as ace. The main function is ace_nn and its parameters are very similar to ace_cream.
import numpy as np
from ace_nn import ace_nn
# discrete case, binary symmetric channel with crossover probability 0.1
N_SIZE = 1000
x = np.random.choice([0,1], size=N_SIZE)
n = np.random.choice([0,1], size=N_SIZE, p=[0.9, 0.1])
y = np.mod(x + n, 2)
# set both x(cat=0) and y(cat=-1) as categorical type
tx, ty = ace_nn(x, y, cat=[-1,0], epochs=100)
# continuous case
x = np.random.uniform(0, np.pi, 200)
y = np.exp(np.sin(x)+np.random.normal(size=200)/2)
tx, ty = ace_nn(x, y)
For more detail, run help(ace_nn) to see the parameters and returns of this function.
Currently, the neural networks used to approximate optimal $f(x)$ and $g(y)$ are two-layer MLP with tanh as activation function. More turns of epochs are needed for large alphabet $|\mathcal{X}|$ and $|\mathcal{Y}|$ and the running time is not short.
Also, batch_size and hidden_units_num can be hypertuned, and there is no guarantee that current configuration of neural network is optimal for solving ace.
we can use ace_nn(x, y, return_hscore = True) to calculate a lower bound of $\frac{\norm{B}_F^2}{2}$
pypistats · 37 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-20 – 2026-10-20 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-19 – 2026-10-19 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-18 – 2026-10-18 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-13 – 2026-10-13 | 4 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-11 – 2026-10-11 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-10 – 2026-10-10 | 4 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-09 – 2026-10-09 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-30 – 2026-09-30 | 4 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-27 – 2026-09-27 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-26 – 2026-09-26 | 3 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-24 – 2026-09-24 | 3 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-14 – 2026-09-14 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-12 – 2026-09-12 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-10 – 2026-09-10 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-09 – 2026-09-09 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-08 – 2026-09-08 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-06 – 2026-09-06 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-09-03 – 2026-09-03 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-31 – 2026-08-31 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-28 – 2026-08-28 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-24 – 2026-08-24 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-20 – 2026-08-20 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-19 – 2026-08-19 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-18 – 2026-08-18 | 18 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-17 – 2026-08-17 | 3 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-14 – 2026-08-14 | 3 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-09 – 2026-08-09 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-07 – 2026-08-07 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-04 – 2026-08-04 | 2 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-03 – 2026-08-03 | 4 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-07-28 – 2026-07-28 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-07-27 – 2026-07-27 | 3 | 2026-10-21T10:55:55.9861399Z |
| 2026-07-24 – 2026-07-24 | 1 | 2026-10-21T10:55:55.9861399Z |
| 2026-07-23 – 2026-07-23 | 1 | 2026-10-21T10:55:55.9861399Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2 | 1 Mar 2019 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2871bed55ce7bc030cfe49c19c530ad3aaea3890f4a303c7ffe334e280dd5596