zhengruifeng commented on pull request #31657:
URL: https://github.com/apache/spark/pull/31657#issuecomment-786558974


   the fourth commit (center the vectors)
   ```
   [info] LogisticRegressionSuite:
   featuresMean: [0.4999142959117828,1.4847274177074965]
   featuresStd: [0.28501348037270735,0.28375633081273305]
   optimizer: breeze.optimize.OWLQN@262f5c5b
   initialCoefWithInterceptMatrix 0.0  0.0  -3.548107045716773  
   gradient: [-6.57041694536165E-4,-4.3701074548027315E-4,3.625153510711243E-16]
   solution: 0.0,0.0,-3.548107045716773
   gradient: [2.6477614818588505E-4,1.697872398765179E-4,2.5959113845195497E-4]
   gradient: [-5.652976125011001E-4,-3.767001106547129E-4,2.591209816773411E-6]
   solution: 0.04163191715603039,0.02769006228090145,-3.548107045716796
   gradient: [-3.430852238941059E-6,-1.9595723924324464E-6,-9.64557388326005E-5]
   gradient: 
[-2.8376937581256684E-4,-1.8902836687458965E-4,-7.17024346300996E-5]
   solution: 0.16997772851427645,0.11421595627472275,-3.552345237368423
   gradient: [6.280850628829918E-5,4.206699725712781E-5,0.0016891052166985998]
   gradient: [-1.1533596259032091E-4,-7.675692233872651E-5,7.882523562469718E-4]
   solution: 0.23968564949998783,0.16118539810370558,-3.522679424753057
   gradient: [1.6897826372548652E-5,1.1629282110378418E-5,-5.933855803980349E-5]
   gradient: [-4.818420243854646E-5,-3.188272820934356E-5,3.5962411259078745E-4]
   solution: 0.27346376714813386,0.18397321831958377,-3.539096215693765
   gradient: [-1.762739719523705E-6,-8.813323005739777E-7,6.4203027283822904E-6]
   solution: 0.29801547876601253,0.2005203011883522,-3.552782667368458
   gradient: 
[-1.3122748918115355E-7,1.7506970216077365E-7,1.0799382776927846E-7]
   solution: 0.2988261192214477,0.20105156095735519,-3.5530413655894604
   gradient: 
[-1.0691199750626867E-7,1.4415053865566983E-7,-6.271006887005548E-9]
   solution: 0.2988383050554529,0.20103826884467477,-3.5530456452183428
   gradient: [-1.457271330488985E-8,1.9441436464826987E-8,-3.862294017308088E-9]
   solution: 0.2988800192613875,0.20098140109911114,-3.5530456452183428
   Just the blr data
   Coefficients: [0.2988800192613875,0.20098140109911114]
   Intercept: -4.000862636270617
   objectives: 
0.12762747240529596,0.12759076277464498,0.12751199100659708,0.127502289449093,0.12748888996419752,0.1274855117494227,0.12748550995830882,0.12748550995446142,0.1274855099472073
   featuresMean: [0.4999142959117828,1.4847274177074965,0.9899999976158129]
   featuresStd: [0.28501348037270735,0.28375633081273305,0.03000002215257344]
   optimizer: breeze.optimize.OWLQN@191d7510
   initialCoefWithInterceptMatrix 0.0  0.0  0.0  -3.548107045716773  
   gradient: 
[-6.57041694536165E-4,-4.3701074548027315E-4,-1.3400003194854827E-6,3.625153510711243E-16]
   solution: 0.0,0.0,0.0,-3.548107045716773
   gradient: 
[2.647788040344777E-4,1.697848995397656E-4,2.5303835743070155E-7,2.595916563808822E-4]
   gradient: 
[-5.652972869692711E-4,-3.7670038722833294E-4,-1.1739925287885547E-6,2.591215522514641E-6]
   solution: 
0.041631857130108,0.027690022356688423,8.458970865958075E-5,-3.548107045716796
   gradient: 
[-3.4307895450634257E-6,-1.9594489029385896E-6,-1.9455854427596387E-7,-9.645546966917319E-5]
   gradient: 
[-2.837691093609234E-4,-1.8902849506005826E-4,-6.753911836397393E-7,-7.170230167844661E-5]
   solution: 
0.16997696255451583,0.11421624977485892,3.7873909507165303E-4,-3.5523452337598753
   gradient: 
[6.280849403677212E-5,4.206685738343589E-5,-7.808623289191807E-8,0.001689099291789963]
   gradient: 
[-1.1533578769718904E-4,-7.675706399618278E-5,-3.8254027369988286E-7,7.882495498504075E-4]
   solution: 
0.23968443814821594,0.161185860520049,5.752752095355134E-4,-3.5226795271963707
   gradient: 
[1.689831603281285E-5,1.1629634709629662E-5,-1.5924843985142931E-7,-5.933933227943389E-5]
   gradient: 
[-4.8183864535889854E-5,-3.188262438102376E-5,-2.685070410274117E-7,3.596223265702454E-4]
   solution: 
0.2734624600009354,0.18397384514072254,6.562985505963231E-4,-3.539096285985279
   gradient: 
[-1.7623837782601855E-6,-8.811552204428178E-7,-1.902805613898652E-7,6.42034364586239E-6]
   solution: 
0.2980140279519748,0.20052099860480474,7.243336149420879E-4,-3.552782672183577
   gradient: 
[-1.308435552553082E-7,1.7522681185217625E-7,-1.8728135099113207E-7,1.0796993739692429E-7]
   solution: 
0.2988246568427008,0.20105225916191377,7.357959966170678E-4,-3.553041373010215
   gradient: 
[-1.0572381932722141E-7,1.4475798497516389E-7,-1.8683911265413282E-7,-9.350460280813877E-9]
   solution: 
0.29883720869077895,0.20103920895917662,7.505998343578746E-4,-3.5530457776569198
   gradient: 
[5.743938585281949E-8,-6.758390999767316E-8,-1.8348186478146154E-7,-3.5695409158558177E-9]
   solution: 
0.29891066350525625,0.20094248060263462,8.660772750890954E-4,-3.5530457776569198
   gradient: 
[5.8317452902913124E-8,-6.791652768930034E-8,-1.7913491820942799E-7,-3.3740118968097474E-9]
   gradient: 
[5.9283331070135054E-8,-6.828238983418311E-8,-1.7435334453838666E-7,-3.1580851105168503E-9]
   gradient: 
[6.13116901929025E-8,-6.905064130831894E-8,-1.6431227019570145E-7,-2.7017578284960207E-9]
   solution: 
0.29891066350525625,0.20094248060263462,0.0016524551840146314,-3.5530457776569198
   gradient: 
[-3.3429122077929095E-7,-8.094233509045523E-8,-5.220759463602606E-9,-1.14893755906599E-7]
   solution: 
0.298717124459806,0.20094248060263462,0.008219655876142323,-3.5530457776569198
   gradient: 
[4.046487526090745E-7,3.3425166145764116E-7,7.07262226288706E-9,8.542500752560196E-7]
   gradient: 
[3.5172934145882624E-8,1.266510099161604E-7,9.259059525909691E-10,3.696372369718714E-7]
   solution: 
0.29888022923334545,0.20103513693037628,0.008445387145712675,-3.553033089548208
   gradient: 
[-8.310697095416763E-9,-6.327444459165443E-9,-5.123124896538239E-9,2.7130074991531748E-8]
   solution: 
0.29886424895473795,0.20097637066670226,0.0081964409252861,-3.5530444213975656
   blr data plus one vector that is filled with 1's and .9's
   Coefficients: [0.29886424895473795,0.20097637066670226,0.0081964409252861]
   Intercept: -4.0089605363236664
   objectives: 
0.12762747240529596,0.12759076272473055,0.12751199091264895,0.1275022892512339,0.12748888980357576,0.1274855116106662,0.12748550981788526,0.12748550981132328,0.1274855097849027,0.12748550965212296,0.12748550915369958,0.12748550913527845,0.12748550912816792
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to