NiftyCent.com
NiftyCent.com
NiftyCent
US
Bookmarks
| Remote services |
mmm7777
3mo | Mar 23, 2021, 8:59:58 AM
Model fit progress
/ng/python-tips

Some models are training too long.

For progress, set up verbose = True

model = GradientBoostingClassifier(verbose=True)
| | |
mmm7777
3mo | Mar 22, 2021, 12:13:21 PM
Sort python map
/ng/python-tips

Sort python map

probs = {}
probs[3] = 0.3
probs[4] = 0.2
probs[5] = 0.5
sortedProbs = sorted(probs.items(), key=lambda x: x[1], reverse=True)
print(sortedProbs)
| | |

Members

Python tips
More statistics

ad