• API
• FAQ
• Tools
• Archive
SHARE
TWEET # Untitled a guest Oct 14th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. 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
2.      *** train file: Eminem.csv
3.      *** test file: KatyPerry.csv
4.
5. Training max_ent with LBFGS algorithm. Change iprint = 99 to more logs...
6. RUNNING THE L-BFGS-B CODE
7.
8.            * * *
9.
10. Machine precision = 2.220D-16
11.  N =         3348     M =           10
12.
13. At X0         0 variables are exactly at the bounds
14.  This problem is unconstrained.
15.
16. At iterate    0    f=  3.10530D+02    |proj g|=  7.26767D+00
17.
18. At iterate    1    f=  2.90416D+02    |proj g|=  5.74947D+00
19.
20. At iterate    2    f=  2.48617D+02    |proj g|=  4.54386D-01
21.
22. At iterate    3    f=  2.48119D+02    |proj g|=  4.48650D-02
23.
24. At iterate    4    f=  2.48097D+02    |proj g|=  1.98395D-02
25.
26. At iterate    5    f=  2.48096D+02    |proj g|=  1.00844D-02
27.
28. At iterate    6    f=  2.48096D+02    |proj g|=  1.60738D-03
29.
30. At iterate    7    f=  2.48096D+02    |proj g|=  7.07242D-05
31.
32. At iterate    8    f=  2.48096D+02    |proj g|=  2.32712D-05
33.
34.            * * *
35.
36. Tit   = total number of iterations
37. Tnf   = total number of function evaluations
38. Tnint = total number of segments explored during Cauchy searches
39. Skip  = number of BFGS updates skipped
40. Nact  = number of active bounds at final generalized Cauchy point
41. Projg = norm of the final projected gradient
42. F     = final function value
43.
44.            * * *
45.
46.    N    Tit     Tnf  Tnint  Skip  Nact     Projg        F
47.  3348      8      9      1     0     0   2.327D-05   2.481D+02
48.   F =   248.09614144565936
49.
50. CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH
51.
52.  Cauchy                time 0.000E+00 seconds.
53.  Subspace minimization time 0.000E+00 seconds.
54.  Line search           time 0.000E+00 seconds.
55.
56.  Total User time 0.000E+00 seconds.
57.
58. lambda [ 0.03133257  0.03133257 -0.00700377 ...  0.03259307  0.03259307
59.   0.06292301]
60. score test dataset
61. {'1': 0.467125745558424, '0': 0.5328742544415761}
62. {'1': 0.5306759546400904, '0': 0.4693240453599095}
63.
64. Process finished with exit code 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Not a member of Pastebin yet?