zoukankan      html  css  js  c++  java
  • 第25月第9天 tf_tang_poems kaggle

    1.neural-style

    https://github.com/anishathalye/neural-style

    wget http://www.vlfeat.org/matconvnet/models/beta16/imagenet-vgg-verydeep-19.mat
    
    python neural_style.py --content examples/1-content.jpg --styles examples/1-style.jpg --output examples/myoutput.jpg --network ../neural-style-mat/imagenet-vgg-verydeep-19.mat
    

      

    https://www.cnblogs.com/lijingpeng/p/6009476.html

    2.生成诗词和歌词

    tensorflow 1.0
    python3.5

    https://github.com/charlesXu86/tf_tang_poems/

    在开发过程,特别是clone项目时在PyCharm中经常出现Unresolved Reference问题,对于有强迫症的人来说,简直不可忍受。

    1. 进入PyCharm->Preferences->Build,Excution,Deployment->Console->Python Console勾选上Add source roots to PYTHONPATH;
    2. 进入PyCharm->Preferences->Project->Project Structure,通过选中某一目录右键添加sources;
    3. 点击Apply和OK即可.

    https://blog.csdn.net/haiyanggeng/article/details/79215819

    3.kaggle

    https://github.com/lijingpeng/kaggle

    https://www.cnblogs.com/lijingpeng/p/6009476.html

    代码运行

    regr = RandomForestRegressor(n_estimators=50,max_depth=None,min_samples_split=1,random_state=0)

    regr = regr.fit(features_train,ratings_train)

    解决方法是: 将第一行中的min_samples_split=1 改为 min_samples_split=1.0

     

    cv=StratifiedShuffleSplit( n_splits=10, test_size=0.2, train_size=None)).fit(train_data, label)

     

  • 相关阅读:
    [bzoj3999] [TJOI2015]旅游
    [bzoj3143] [HNOI2013]游走
    [bzoj3140] [Hnoi2013]消毒
    [bzoj3142] [HNOI2013]数列
    [bzoj4860] [BeiJing2017]树的难题
    [bzoj2599] [IOI2011]Race
    [bzoj1558] [JSOI2009]等差数列
    [bzoj3626] [LNOI2014]LCA
    [bzoj4011] [HNOI2015]落忆枫音
    JQuery
  • 原文地址:https://www.cnblogs.com/javastart/p/9760003.html
Copyright © 2011-2022 走看看