This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 可视化网站 链接http://athena.ecs.csus.edu/~associationcw/FpGrowth.html | |
// 对于一些数据可能会出错误 | |
var align = [["A",1,], | |
["B",2,], | |
["C",3,], | |
["D",4,], | |
["E",5,], | |
["F",6,], | |
["G",7,], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.datasets import make_blobs | |
from matplotlib import pyplot as plt | |
import numpy as np | |
def distance(ix, iy): | |
return np.linalg.norm(x_map[ix] - x_map[iy]) | |
def is_cluster(ix): | |
return yy[ix] > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ele = $('tbody tr input'); | |
index = 0; | |
value = [0,0,0,0,0, | |
0,0,0,0,0, | |
0,0,0,0,0, | |
0,0, | |
1,1,2,0]; | |
txt = "老师教的很好"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ū#u,1 | |
à#a,4 | |
ǔ#u,3 | |
ǐ#i,3 | |
í#i,2 | |
é#e,2 | |
ó#o,4 | |
ò#o,2 | |
ā#a,1 | |
ú#u,2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ParallelModel(keras.models.Model): | |
"""Subclasses the standard Keras Model and adds multi-GPU support. | |
It works by creating a copy of the model on each GPU. Then it slices | |
the inputs and sends a slice to each copy of the model, and then | |
merges the outputs together and applies the loss on the combined | |
outputs. | |
""" | |
def __init__(self, keras_model, gpu_count): | |
"""Class constructor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python setup.py sdist bdist_wheel | |
SET CountI=0 | |
SET BakDir="./dist/" | |
for /f %%a in ('dir %BakDir% /a:-d /B /o:-D') do ( | |
rem echo %%a | |
SET FileName=%%a | |
SET CountI=CountI+1 | |
rem echo %CountI% | |
if %CountI% == 0 goto bakup2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md\ShellNew] | |
"NullFile"="" | |
"FileName"="template.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set /p commitmsg=input commitmsg: | |
git add * | |
git commit -m %a% | |
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JS脚本区域 | |
function insertAtCursor(myField, myValue) { | |
//IE support | |
if (document.selection) { | |
document.selection.empty(); | |
caretPos.text = myValue; | |
caretPos.select(); | |
myField.focus(); | |
} | |
//MOZILLA/NETSCAPE support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from collections import Iterable, OrderedDict | |
from datetime import datetime | |
from typing import Any | |
class LogParam: | |
""" | |
meter = LogParam() |
OlderNewer