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

Switch translation of ruby function calls to allow nested calls #4158

Merged
merged 1 commit into from Feb 7, 2018

Conversation

sorig
Copy link
Member

@sorig sorig commented Feb 7, 2018

Fixes issue with ruby in #4154

@sorig
Copy link
Member Author

sorig commented Feb 7, 2018

@karlnapf just seeing if this passes. May solve the issue you were seeing

@karlnapf
Copy link
Member

karlnapf commented Feb 7, 2018

Just merged #4154 if you wanna rebase

@karlnapf
Copy link
Member

karlnapf commented Feb 7, 2018

You will need to test that, I removed the nested call in the kwargs.sg

@sorig
Copy link
Member Author

sorig commented Feb 7, 2018

Just rebased and added the test


# Real example
# ------------

Kernel k = kernel("GaussianKernel", log_width=2.0)
KernelMachine svm = kernel_machine("LibSVM", C1=1.1, kernel=k)

KernelMachine svm2 = kernel_machine("LibSVM", kernel=kernel("GaussianKernel"))
Copy link
Member

Choose a reason for hiding this comment

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

can also put the scalars in there :) we have some hackery that covers it now

Copy link
Member

Choose a reason for hiding this comment

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

but of course not necessary

@karlnapf
Copy link
Member

karlnapf commented Feb 7, 2018

Thanks for the quick fix! :)

@karlnapf
Copy link
Member

karlnapf commented Feb 7, 2018

Seems like ruby likes you :)

@karlnapf karlnapf merged commit abb0e4a into shogun-toolbox:develop Feb 7, 2018
@sorig sorig deleted the meta_ruby_method_call_fix branch February 20, 2018 10:22
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.

None yet

2 participants