Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\sgfow\PycharmProjects\Maximum_Entropy_Text_Classification\venv\Scripts\python.exe C:/Users/sgfow/PycharmProjects/Maximum_Entropy_Text_Classification/maxent.py Eminem.csv KatyPerry.csv
- *** train file: Eminem.csv
- *** test file: KatyPerry.csv
- Training max_ent with LBFGS algorithm. Change iprint = 99 to more logs...
- RUNNING THE L-BFGS-B CODE
- * * *
- Machine precision = 2.220D-16
- N = 3348 M = 10
- At X0 0 variables are exactly at the bounds
- This problem is unconstrained.
- At iterate 0 f= 3.10530D+02 |proj g|= 7.26767D+00
- At iterate 1 f= 2.90416D+02 |proj g|= 5.74947D+00
- At iterate 2 f= 2.48617D+02 |proj g|= 4.54386D-01
- At iterate 3 f= 2.48119D+02 |proj g|= 4.48650D-02
- At iterate 4 f= 2.48097D+02 |proj g|= 1.98395D-02
- At iterate 5 f= 2.48096D+02 |proj g|= 1.00844D-02
- At iterate 6 f= 2.48096D+02 |proj g|= 1.60738D-03
- At iterate 7 f= 2.48096D+02 |proj g|= 7.07242D-05
- At iterate 8 f= 2.48096D+02 |proj g|= 2.32712D-05
- * * *
- Tit = total number of iterations
- Tnf = total number of function evaluations
- Tnint = total number of segments explored during Cauchy searches
- Skip = number of BFGS updates skipped
- Nact = number of active bounds at final generalized Cauchy point
- Projg = norm of the final projected gradient
- F = final function value
- * * *
- N Tit Tnf Tnint Skip Nact Projg F
- 3348 8 9 1 0 0 2.327D-05 2.481D+02
- F = 248.09614144565936
- CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH
- Cauchy time 0.000E+00 seconds.
- Subspace minimization time 0.000E+00 seconds.
- Line search time 0.000E+00 seconds.
- Total User time 0.000E+00 seconds.
- lambda [ 0.03133257 0.03133257 -0.00700377 ... 0.03259307 0.03259307
- 0.06292301]
- score test dataset
- {'1': 0.467125745558424, '0': 0.5328742544415761}
- {'1': 0.5306759546400904, '0': 0.4693240453599095}
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement