Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entmax optimization problem #1

Open
azhx opened this issue Mar 5, 2024 · 2 comments
Open

Entmax optimization problem #1

azhx opened this issue Mar 5, 2024 · 2 comments

Comments

@azhx
Copy link

azhx commented Mar 5, 2024

Hi, On your paper, you state that alpha-sigmoid is defined as

image

However, the entmax_bisect function you use solves the optimization for

max_p <x, p> - H_a(p)

Can you clarify this discrepancy?

@sanagno
Copy link
Owner

sanagno commented Mar 6, 2024

Hi,

You can define the $\alpha$-sigmoid(x) (using parameters $p_x$) with respect to the $\alpha$-entmax($\bf{y}$) (using parameters $p_y$), by setting $\bf{y} = [x, 0]$ and $\bf{p_y} = [p_x, 1 - p_x]$. Let me know if that does not answer your question!

@azhx
Copy link
Author

azhx commented Mar 7, 2024

I understand that this is how you're defining $\alpha$-sigmoid, it's just that the docstring for the entmax_bisect function says the optimization being solved is max_p <x, p> - H_a(p). In the original paper by Peters, et. al, they also seem to say that the bisection algorithm is to solve the maximization problem with the addition rather than the subtraction. Maybe the docstring has a typo? Or have I missed something mathematically. I haven't gone deep into the bisection algorithm itself.

Anyways, I understand how your methods works, so all good. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants