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.
Resync apache #253
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.
Resync apache #253
Changes from 1 commit
ae9e4246aad02dbfdc3617ab95182caaed9310454b07a2b8723ea8987880909a2db5c510be01872b738d73e04ec41e0eb728a6cca77d046eb3a0752988b84dba8432984b5b16c108a5d751f5135c9b301be72b153ed1ae143d71d901a8e46d56c26241bb1dd3c0c2d03429619d58a350d6b30ed1662e936942aeeb8aaef443cbfadce0d3bb846bc6195713ebdc5d34d9e33954183d4cb2dd37d8d3abb36763b83e05af2def3676d67d16776574ef6cde7af291f24cee1813c4a628bdea51620e21a598d7522e1f83b66b1c07142cf0456b4024e6c1873e64f7c7270a432fa0b88fcbda96327ea56077e3e840ba05d7b1fcffba9cc83d0e174e47f48c66338b8228560c90b58acd4895c98f0df6b734ed7ab30a11a4133c1b32d6d9d235d2838a7acba6949a9cd8f4540313c6cacd5d0f337c725d4482ff2ecf437a964b50719b02409696580fc45c2c501370d7ce1108cba69ae96028e3f5e10a35cd8ea9648a8620bdbefe12f0d2412ab7f7aba9492900f14facb7fed07fd68a9f30d92ca594454e7a29e7f3c6ff02a438629744068c954d2fd60d4f9e451bc6a23254445f1794ee7dfe16c4c0364936c1f2e22ae36b48eeacdf45ffa0092baad2125ce7293ceea2b87b9ab791e00f1a1c26976f57bc1e9f62b20f6e37524dbb82410dfc1ec8a4f2288598d0331c74fe8a5eb506b45d7ee4d8f9af767905520d92a6273a71828fab04bab8f5dc74c0ee2ac2f1dd781677d0a3ef9575582515910e720c94fb9b54b1c5f9b891a98574371e4e2f6c5d8fdd88fa3a1d98c64fbf748ca00cc70fa5b7cb6ef1f521c44508c7e19a17edfec8be7e6bdcbb2298d8641f66cb72dc76153c4e6fc694b88393ddd7f5e054ddb2a28728a886617422b111e4decedf3c6198c61979030e7940b51a2d0d3d67f875e65a21388cb48File 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.
…td contains zero ## What changes were proposed in this pull request? fix bug of MLOR do not work correctly when featureStd contains zero We can reproduce the bug through such dataset (features including zero variance), will generate wrong result (all coefficients becomes 0) ``` val multinomialDatasetWithZeroVar = { val nPoints = 100 val coefficients = Array( -0.57997, 0.912083, -0.371077, -0.16624, -0.84355, -0.048509) val xMean = Array(5.843, 3.0) val xVariance = Array(0.6856, 0.0) // including zero variance val testData = generateMultinomialLogisticInput( coefficients, xMean, xVariance, addIntercept = true, nPoints, seed) val df = sc.parallelize(testData, 4).toDF().withColumn("weight", lit(1.0)) df.cache() df } ``` ## How was this patch tested? testcase added. Author: WeichenXu <[email protected]> Closes apache#18896 from WeichenXu123/fix_mlor_stdvalue_zero_bug.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing