Skip to content

Add cauchy kernel cookbook - #4338

Merged
karlnapf merged 4 commits into
shogun-toolbox:developfrom
vinx13:cookbook/cauchy
Jun 20, 2018
Merged

Add cauchy kernel cookbook#4338
karlnapf merged 4 commits into
shogun-toolbox:developfrom
vinx13:cookbook/cauchy

Conversation

@vinx13

@vinx13 vinx13 commented Jun 16, 2018

Copy link
Copy Markdown
Member

No description provided.

@karlnapf

Copy link
Copy Markdown
Member

Thanks for this!

As said a few times before, let's not have more kernel cookbooks (after this one) as we already have tons of them. Rather, we should have cookbooks for algorithms that haven't been described yet

Cauchy Kernel
=============

The cauchy kernel is derived from the Cauchy distribution :cite:`basak2008kernel`. It is a long-tailed kernel defined as

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor: pls start new sentences in a new line

The cauchy kernel is derived from the Cauchy distribution :cite:`basak2008kernel`. It is a long-tailed kernel defined as

.. math::
K(x,x') = \frac{1}{1+\frac{\| x-x' \|^2}{\sigma}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would prefer a lowercase k, unless K is used elsewhere


examples/distance/**

Kernel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh wait, we didnt have kernels yet? ;)
Ok then this is quite good to have :)

}
@inproceedings{basak2008kernel
author={J. Basak},
booktitle={2008 19th International Conference on Pattern Recognition},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this really the best reference? where do you have it from? can't we use some of the references we already used (like the kernel book by schölkopf?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i found several links point to this paper, e.g https://github.com/gmum/pykernels/blob/c8afdc79a15197ad3be2a0db0118f5e948577f49/pykernels/regular.py#L132
and I've checked that paper, the author gave a definition of it in sec.3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok cool. When citing it, put [Section 3] in there (if possible)

Comment thread doc/cookbook/source/references.bib Outdated
booktitle={2008 19th International Conference on Pattern Recognition},
title={A least square kernel machine with box constraints},
year={2008},
pages={1-4},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pls do proper references. These pages here are definitely not correct

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ICPR papers are not re-assigned a page number when they are published. This is based on the reference format provided in https://ieeexplore.ieee.org/document/4761717

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see, maybe we can remove them then?


We create an instance of :sgclass:`CCauchyKernel`.

.. sgexample:: cauchy:create_kernel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you talk about the fact that a distance is used for this kernel?

@karlnapf karlnapf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok from my side

@karlnapf

Copy link
Copy Markdown
Member

I restarted windows since it was failing

title={A least square kernel machine with box constraints},
year={2008},
pages={1-4},
year={2008}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cool thx!

Did you render this locally (the html output) and check that it all works ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes it works

@karlnapf

Copy link
Copy Markdown
Member

Alright, great! thanks!

@karlnapf
karlnapf merged commit c870b67 into shogun-toolbox:develop Jun 20, 2018
ktiefe pushed a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
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