91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

google于2016年發表的論文"Wide & Deep Learning for Recommender Systems"里面的代碼; 全套工程文件+數據集+調試過程; 經過tf版本升級之后,通過調試,沒有問題; 其他小問題可以參考我寫的“調試過程”

資源截圖

代碼片段和文件信息

#?Copyright?2017?The?TensorFlow?Authors.?All?Rights?Reserved.
#
#?Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
#?you?may?not?use?this?file?except?in?compliance?with?the?License.
#?You?may?obtain?a?copy?of?the?License?at
#
#?????http://www.apache.org/licenses/LICENSE-2.0
#
#?Unless?required?by?applicable?law?or?agreed?to?in?writing?software
#?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
#?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
#?See?the?License?for?the?specific?language?governing?permissions?and
#?limitations?under?the?License.
#?==============================================================================
“““Download?and?clean?the?Census?Income?Dataset.“““

from?__future__?import?absolute_import
from?__future__?import?division
from?__future__?import?print_function

import?argparse
import?os
import?sys

from?six.moves?import?urllib
import?tensorflow?as?tf

DATA_URL?=?‘https://archive.ics.uci.edu/ml/machine-learning-databases/adult‘
TRAINING_FILE?=?‘adult.data‘
TRAINING_URL?=?‘%s/%s‘?%?(DATA_URL?TRAINING_FILE)
EVAL_FILE?=?‘adult.test‘
EVAL_URL?=?‘%s/%s‘?%?(DATA_URL?EVAL_FILE)

parser?=?argparse.ArgumentParser()

parser.add_argument(
????‘--data_dir‘?type=str?default=‘./‘
????help=‘Directory?to?download?census?data‘)


def?_download_and_clean_file(filename?url):
??“““Downloads?data?from?url?and?makes?changes?to?match?the?CSV?format.“““
??temp_file?_?=?urllib.request.urlretrieve(url)
??with?tf.gfile.Open(temp_file?‘r‘)?as?temp_eval_file:
????with?tf.gfile.Open(filename?‘w‘)?as?eval_file:
??????for?line?in?temp_eval_file:
????????line?=?line.strip()
????????line?=?line.replace(‘?‘?‘‘)
????????if?not?line?or?‘‘?not?in?line:
??????????continue
????????if?line[-1]?==?‘.‘:
??????????line?=?line[:-1]
????????line?+=?‘\n‘
????????eval_file.write(line)
??tf.gfile.Remove(temp_file)


def?main(_):
??if?not?tf.gfile.Exists(FLAGS.data_dir):
????tf.gfile.MkDir(FLAGS.data_dir)

??training_file_path?=?os.path.join(FLAGS.data_dir?TRAINING_FILE)
??_download_and_clean_file(training_file_path?TRAINING_URL)

??eval_file_path?=?os.path.join(FLAGS.data_dir?EVAL_FILE)
??_download_and_clean_file(eval_file_path?EVAL_URL)


if?__name__?==?‘__main__‘:
??FLAGS?unparsed?=?parser.parse_known_args()
??tf.app.run(argv=[sys.argv[0]]?+?unparsed)

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????228??2018-08-10?14:49??wide_deep\wide_deep\.idea\inspectionProfiles\profiles_settings.xml

?????文件????????213??2018-08-10?14:49??wide_deep\wide_deep\.idea\misc.xml

?????文件????????270??2018-08-10?14:49??wide_deep\wide_deep\.idea\modules.xml

?????文件????????459??2018-08-10?14:49??wide_deep\wide_deep\.idea\wide_deep.iml

?????文件??????24867??2018-08-10?17:45??wide_deep\wide_deep\.idea\workspace.xml

?????文件????3518450??2018-08-10?15:01??wide_deep\wide_deep\data\adult.data

?????文件????1758916??2018-08-10?15:02??wide_deep\wide_deep\data\adult.test

?????文件???????2412??2018-08-10?14:57??wide_deep\wide_deep\data_download.py

?????文件????????172??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\checkpoint

?????文件????1069939??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\eval\events.out.tfevents.1533890712.20160331-6353

?????文件????1069945??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\eval\events.out.tfevents.1533894224.20160331-6353

?????文件????1857809??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\events.out.tfevents.1533890706.20160331-6353

?????文件????1857812??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\events.out.tfevents.1533894219.20160331-6353

?????文件????1068593??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\graph.pbtxt

?????文件??????????8??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\model.ckpt-0.data-00000-of-00002

?????文件??????36600??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\model.ckpt-0.data-00001-of-00002

?????文件???????1265??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\model.ckpt-0.index

?????文件?????513281??2018-08-10?16:45??wide_deep\wide_deep\model\wide_component\model.ckpt-0.meta

?????文件??????????8??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-128.data-00000-of-00002

?????文件??????36600??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-128.data-00001-of-00002

?????文件???????1265??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-128.index

?????文件?????513281??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-128.meta

?????文件??????????8??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-64.data-00000-of-00002

?????文件??????36600??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-64.data-00001-of-00002

?????文件???????1265??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-64.index

?????文件?????513281??2018-08-10?17:43??wide_deep\wide_deep\model\wide_component\model.ckpt-64.meta

?????文件????????277??2018-08-11?10:20??wide_deep\wide_deep\model\wide_deep\checkpoint

?????文件????1229922??2018-08-10?16:36??wide_deep\wide_deep\model\wide_deep\eval\events.out.tfevents.1533890175.20160331-6353

?????文件????1229922??2018-08-10?17:06??wide_deep\wide_deep\model\wide_deep\eval\events.out.tfevents.1533891942.20160331-6353

?????文件????1229925??2018-08-10?17:11??wide_deep\wide_deep\model\wide_deep\eval\events.out.tfevents.1533892254.20160331-6353

............此處省略40個文件信息

評論

共有 條評論