Give a list L = [56, 78, 98, 34] the following one linear will sort the elements in the descending order of their values.
L.sort(lambda x, y: 1 if y > x else -1)
L.sort(lambda x, y: 1 if y > x else -1)
This blog covers various topics from technical tweaks to latest in computational linguistics, Artificial Intelligence, Machine Learning and Wed Data Mining.
For nvidia GPUs do the follwing: nvidia-smi -l 1
No comments:
Post a Comment