Giter Club home page Giter Club logo

ai_yanxishe's People

Contributors

yphacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ai_yanxishe's Issues

潮流商品标签识别 main.py一些bug问题

def main(op): if op == 'train': train_df = pd.read_csv('../data/train.csv') print(train_df['Sports'].value_counts()) train_df['filename'] = train_df['filename'].apply(lambda x: '../data/train/{0}'.format(x)) if mode == 1: n_splits = 5 x = train_df['filename'].values y = train_df['label'].values skf = StratifiedKFold(n_splits=n_splits, random_state=0, shuffle=True) for fold_idx, (train_idx, val_idx) in enumerate(skf.split(x, y)): train(train_df.iloc[train_idx], train_df.iloc[val_idx], fold_idx)
在main.py的第162行,在读取y值时,为什么直接y = train_df['label'].values呢,数据集的csv是有三个属性的呀,这个该如何修改进行多标签分类呢
我试过给label改成Sports单属性,但会报错输入中含有NaN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.