the crazy * in zip()
I just want to reshape the List without use the numpy, so I found a piece of crazy code in stackoverflow: output: [(‘a’, ‘b’), (‘c’, ‘d’), (‘e’, ‘f’)] After the long consideration, I understand the code at last. The python…
I just want to reshape the List without use the numpy, so I found a piece of crazy code in stackoverflow: output: [(‘a’, ‘b’), (‘c’, ‘d’), (‘e’, ‘f’)] After the long consideration, I understand the code at last. The python…
Asterik in python is usually very confused for the beginner. Some times it appears one time before a variable like *args, some times it appears two times like **args. Usually it appears in function definition: * and ** allow arbitrary…
In data mining tasks is the attributes normalizing usually a prerequisite in order to get a meaningful result. For example, if you want to calculate the euclidean distance, the attributes with relative large numerical values will have more influence of…
If you copy a bundle of python codes into eclipse, usually the pydev can not find the paths. In this case, you have 2 two ways to deal with this problem. right click the folder -> pydev -> Set as…
There are already many ways to do the euclidean distance in python, you don’t need to do it actually. But it is a very good exercise for programming as long as you do it by yourself. summary: no numpy numpy.dot(vector.T,…
git Reference help.github Pro Git (free ebook) GitLab codeschool course for Git Tutorialspoint for Git Egit Icon Decorations
$ git init #initialize an empty Git repoistory $ git status #see the current state of the project untracked file: it is a new file and not be tracked by Git staged:Files are ready to be committed. unstaged: Files with changes that…