- 2024-10-09TFLearn: 高级API深度学习库
TFLearn简介TFLearn是一个建立在TensorFlow之上的深度学习库,旨在为TensorFlow提供一个更高级的API,以便于快速实验和开发。它的设计理念是提供一个模块化、透明的深度学习库,同时保持与TensorFlow的完全兼容性。TFLearn具有以下主要特点:简单易用的高级API,可以快速实现深度神
- 2023-08-03tflearn 数据集太大无法加载进内存问题?——使用image_preloader 或者是 hdf5 dataset to deal with that issue
tflearn数据集太大无法加载进内存问题?Hi,all!I'mtryingtotraindeepnetonabigdatasetthatdoesn'tfitintomemory.Isthereanywaytousegeneratorstoreadbatchesintomemoryoneverytrainingstep?I'mlookingforbehavioursimilartofit_genera
- 2023-06-02tflearn tensorflow LSTM predict sin function
from__future__importdivision,print_function,absolute_importimporttflearnimportnumpyasnpimportmathimportmatplotlibmatplotlib.use('Agg')importmatplotlib.pyplotaspltimporttensorflowastfstep_radians=0.001steps_of_histor
- 2023-06-01anaconda tensorflow tflearn 自动安装脚本 anaconda使用-b可以非交互式安装
install_dir=/usr/local/anaconda3DIR="$(cd"$(dirname"${BASH_SOURCE[0]}")"&&pwd)"#scriptdirbash$DIR/Anaconda3-5.0.1-Linux-x86_64.sh-b-p$install_dir$install_dir/bin/condainstall--use-local$DIR/mo
- 2023-05-31使用CNN做电影评论的负面检测——本质上感觉和ngram或者LSTM同,因为CNN里图像检测卷积一般是3x3,而文本分类的话是直接是一维的3、4、5
代码如下:from__future__importdivision,print_function,absolute_importimporttensorflowastfimporttflearnfromtflearn.layers.coreimportinput_data,dropout,fully_connectedfromtflearn.layers.convimportconv_1d,global_max_poolfromtflearn.layers
- 2023-05-31使用CNN做文本分类——将图像2维卷积换成1维
使用CNN做文本分类from__future__importdivision,print_function,absolute_importimporttensorflowastfimporttflearnfromtflearn.layers.coreimportinput_data,dropout,fully_connectedfromtflearn.layers.convimportconv_1d,global_
- 2023-05-31tflearn 中文汉字识别模型试验汇总
defget_model(width,height,classes=40):#TODO,modifymodel#Building'VGGNetwork'network=input_data(shape=[None,width,height,1])#ifRGB,224,224,3network=conv_2d(network,64,3,activation='relu')
- 2023-05-30tflearn alexnet iter 10
他会自己下载数据: #-*-coding:utf-8-*-"""AlexNet.Applying'Alexnet'toOxford's17CategoryFlowerDatasetclassificationtask.References:-AlexKrizhevsky,IlyaSutskever&GeoffreyE.Hinton.ImageNetClassific