Advertisement

用keras进行nlp研究:内容based推荐系统(单标签无用户画像分析)

阅读量:

open resource :deep learning with python (keras)

open code: https://github.com/fchollet/deep-learning-with-python-notebooks/blob/master/3.6-classifying-newswires.ipynb


复制代码
 # single-label & multi-classifications

    
 from keras.datasets import reuters
    
 from keras import models
    
 from keras import layers
    
  
    
 import numpy as np
    
 import matplotlib.pyplot as plt
    
  
    
  
    
 (train_data, train_labels), (test_data, test_labels) = \
    
     reuters.load_data(num_words=10000)
    
     
    
 # translating index-news to synax-news
    
 word_inde

全部评论 (0)

还没有任何评论哟~