Github user wangmiao1981 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18128#discussion_r119911006
  
    --- Diff: R/pkg/R/mllib_classification.R ---
    @@ -239,21 +253,57 @@ function(object, path, overwrite = FALSE) {
     setMethod("spark.logit", signature(data = "SparkDataFrame", formula = 
"formula"),
               function(data, formula, regParam = 0.0, elasticNetParam = 0.0, 
maxIter = 100,
                        tol = 1E-6, family = "auto", standardization = TRUE,
    -                   thresholds = 0.5, weightCol = NULL, aggregationDepth = 
2) {
    +                   thresholds = 0.5, weightCol = NULL, aggregationDepth = 
2,
    +                   lowerBoundsOnCoefficients = NULL, 
upperBoundsOnCoefficients = NULL,
    +                   lowerBoundsOnIntercepts = NULL, upperBoundsOnIntercepts 
= NULL) {
                 formula <- paste(deparse(formula), collapse = "")
    +            lrow <- 0
    +            lcol <- 0
    +            urow <- 0
    +            ucol <- 0
    --- End diff --
    
    Question: Based on my understanding, `lowerBoundsOnCoefficients ` and 
`upperBoundsOnCoefficients ` are not required to set at the same time. They can 
be set at the same time.
    For the first case, we can't enforce the dimension of the two matrices 
because one could be `NULL`. 
    For the second case, we can check it.
    
    So, we can't enforce the rule in general.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to