Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

Conversation

@otoomet
Copy link

@otoomet otoomet commented Dec 28, 2015

If !(optim.method %in% c("BFGS", "gen") R responded by

Error in matrix(runif(n * param.n), nrow = param.n, ncol = n) : non-numeric matrix extent. methods are handled in lower case now internally

I changed it in the following way:

  • optim.method is converted to lower case internally
  • if the method is unknown, R exits with an informative error message
  • as now also "bfgs" and "GEN" are allowed, this is also mentioned in the documentation

The reasons for these changes are the following:

  • I run into the problem early when I started to use DiceKriging, and struggled some time to understand it.
  • I was also confused by the upper case "BFGS" and lower case "gen" difference.
  • In general, I think the error messages should be helpful and informative.

I agree that the choice to use lower case letters internally can be discussed, and I am happy to do that. Are you the right person for this? Or should I talk to Olivier (CRAN maintainer?) I would be happy to contribute more in polishing the package, but that would mean many decisions to be discussed with the maintainers.

Cheers,
Ott

PS: I had issues with git merging, so I am afraid all the former changes are included here as well.

otoomet and others added 5 commits September 18, 2015 13:27
	    give error, the code still attempted to handle full-length
	    return vector 'olist'.
…matrix(runif(n * param.n), nrow = param.n, ncol = n) :

  non-numeric matrix extent.  methods are handled in lower case now internally
@yannrichet
Copy link
Contributor

Hi Ott,

I will try to incluse that soon. I also forward to Olivier for his next
release.

Best

Yann
Le 28 déc. 2015 04:30, "Ott Toomet" [email protected] a écrit :

If !(optim.method %in% c("BFGS", "gen") R responded by

Error in matrix(runif(n * param.n), nrow = param.n, ncol = n) :
non-numeric matrix extent. methods are handled in lower case now internally

I changed it in the following way:

  • optim.method is converted to lower case internally
  • if the method is unknown, R exits with an informative error message
  • as now also "bfgs" and "GEN" are allowed, this is also mentioned in
    the documentation

The reasons for these changes are the following:

  • I run into the problem early when I started to use DiceKriging, and
    struggled some time to understand it.
  • I was also confused by the upper case "BFGS" and lower case "gen"
    difference.
  • In general, I think the error messages should be helpful and
    informative.

I agree that the choice to use lower case letters internally can be
discussed, and I am happy to do that. Are you the right person for this? Or
should I talk to Olivier (CRAN maintainer?) I would be happy to contribute
more in polishing the package, but that would mean many decisions to be
discussed with the maintainers.

Cheers,
Ott

PS: I had issues with git merging, so I am afraid all the former changes

are included here as well.

You can view, comment on, or merge this pull request online at:

#2
Commit Summary

  • kmEstimate: corrected an error where if some of the foreach workers
  • scalingFun example works
  • kmEstimates.R a spacing difference with master fixed
  • fixed an error when unknown optim.method resulted in error: Error in
    matrix(runif(n * param.n), nrow = param.n, ncol = n) :
  • lower case optimization methods mentioned in documentation

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants