Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Branch 1.6 #19334
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
Uh oh!
There was an error while loading. Please reload this page.
Branch 1.6 #19334
Changes from 1 commit
cdfb2a12f390d3a907c7c3ca5dc39b3009682fa86489818cb93f1d91b57fac591a5ca59d45ec418661a293a55f3107290cec40c5a71f53edd95089198354ca66106a616f35c4699644c85e6a22f7898f940d11d0152252f2902798d31854d0784e02573a2c906f4fcefe71cab89759963cc938acb869a11f03163e3802a75f7440bd59a08fabe8f99a57f87e8a43c3beb6f6da15de51cdcf60d7fedb8131ce2c12fa86dc4b3a512951c676e5a27129528e373f0cc511ffaf7c0704a54c18ef2f22434f16cf4e62e695c8a2bace1378ec4f1595105b0bea91a98a1bd5860cb27007ace27078c714db4795a5e08db33519ce913bd122589d0426935b50765307f1fcd17f022e06df9221ad3243d463e21f7f179f6e35e9cefcb75f97070b5878fba84d1546569e504b992a757944c2ce24784ad2543cc3d85f12f11e91530b0285cb9ccfe9f02dca0d9a8a94a5977ebae37a02c44baf2985c12db0df4110cd05dbc28663a4922554c35582ed8a413d06093c9a6358dfba6cd8121417b13841cda10bc3ed950496496b5e53d4af4af6a88ac0ce610d513f2db19a3bf3c060a3aa22aab00652518af071678bffd165486c433c0a86bf93eced71d3e2a43d0fd2da7b7200e6b7ad82b69a181155cc1e2c0b8bdf7c53c83cea84b33714f4d70a13e4c4259a28a0cf7d06a9f19d5830828bb917fc739d992393f4babe3c41b2f3e327cffc0800a8ada5a4485c3f166493b8f380f4168d9c4621fe9e530823fd053893f1d73041efd203d569d954b1121208348516b7f1ddb86e7fabe36c5d98fb194fdac3cd7223bbb7acc1b24d59fb60e095b22a496d4a675410cb06c91ac830accc7fa383f86041026abac25aa8f4fcb8887678195258877645dda92bb92788702178d9808735d1c992f7c8a399980db2bfb093364381e216ea7d4bf6e0c174ff989215abbf9b6f6075f445cce03913af1b2e6f68a22275797e75892ee6fb52d8837d2518acc1628861a5e762a3b06aeace458fb3ecff6909231d8a2b8fcb54a5864d64c7f5c3402960de30f412b0e8b84a92c21be94b958039ae6480a6af8e0973f797dd69fa945047bc3fbf3f6d2a447cd88646b848f88412ce0a22294524ce7aded55e2ce0cab999fa4376545ed3890de585c56518b173c745c5e70f577857375bb0b95ac0d82e98f11e860749136e268f25cb270f271b2303887e78138aa50ef3d23f9faa6b315f3a233facFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…n error Pyspark Params class has a method `hasParam(paramName)` which returns `True` if the class has a parameter by that name, but throws an `AttributeError` otherwise. There is not currently a way of getting a Boolean to indicate if a class has a parameter. With Spark 2.0 we could modify the existing behavior of `hasParam` or add an additional method with this functionality. In Python: ```python from pyspark.ml.classification import NaiveBayes nb = NaiveBayes() print nb.hasParam("smoothing") print nb.hasParam("notAParam") ``` produces: > True > AttributeError: 'NaiveBayes' object has no attribute 'notAParam' However, in Scala: ```scala import org.apache.spark.ml.classification.NaiveBayes val nb = new NaiveBayes() nb.hasParam("smoothing") nb.hasParam("notAParam") ``` produces: > true > false cc holdenk Author: sethah <[email protected]> Closes #10962 from sethah/SPARK-13047. (cherry picked from commit b354673) Signed-off-by: Xiangrui Meng <[email protected]>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing