- 先 Fork 感兴趣项目,即
dmlc/gluon-cv - Clone 到本地,
git clone [email protected]:YimianDai/gluon-cv.git - 添加源项目
dmlc/gluon-cv作为upstream源,git remote add upstream https://github.com/dmlc/gluon-cv.git - 禁止直接向
upstream源 push,因为我们不是 dmlc 的人,没有 push 的权限,要提交代码必须通过 Pull Request,git remote set-url --push upstream no_push - 创建并切换到本地的新分支
fixMixSoftmaxCrossEntropyLoss,git checkout -b fixMixSoftmaxCrossEntropyLoss
This file contains hidden or 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 datetime import datetime | |
| from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
| from sqlalchemy.orm import relationship | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from flask_security import current_user | |
| class AuditMixin(object): | |
| created_at = Column(DateTime, default=datetime.now) | |
| updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
This file contains hidden or 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 numpy as np | |
| import warnings | |
| from itertools import cycle, izip | |
| from sklearn.utils import gen_even_slices | |
| from sklearn.utils import shuffle | |
| from sklearn.base import BaseEstimator | |
| from sklearn.base import ClassifierMixin | |
| from sklearn.preprocessing import LabelBinarizer |

