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

[Question] #182

Open
maulberto3 opened this issue Jul 4, 2024 · 0 comments
Open

[Question] #182

maulberto3 opened this issue Jul 4, 2024 · 0 comments
Labels
question Further information is requested

Comments

@maulberto3
Copy link

maulberto3 commented Jul 4, 2024

Context: I am currently translating this code to Rust.

Issue: I want to understand a line of code:

# (eq.46)
w_io = self._weights * np.where(
    self._weights >= 0,
    1,
    self._n_dim / (np.linalg.norm(C_2.dot(y_k.T), axis=0) ** 2 + _EPS),
)

So, when self.weights is less than zero, it'd happen that the operation would result in a in a vector, given the norm(..., axis=0)?

Can you explain that?

@maulberto3 maulberto3 added the question Further information is requested label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant