Skip to content

Conversation

@shrit
Copy link
Member

@shrit shrit commented Apr 10, 2024

@MarkFischinger please feel free to open a PR to replace the current implementation with Padé

MatType maxInput = repmat(max(input), input.n_rows, 1);
output = (maxInput - input);
output = exp(output * -1);
maxInput.each_row() += log(sum(output));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically, we still do not have an each_row() function in bandicoot

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is possible and on my todo list though. (Soon enough... 😄)

Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, although we won't really be able to test it until everything else is in place.

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@shrit shrit merged commit 4ccdde3 into mlpack:master Apr 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants