当前位置:网站首页>tf.keras.utils.get_file()
tf.keras.utils.get_file()
2022-07-31 05:32:00 【Erosion_ww】
Action:
Downloads the file from the URL if it is not already in the cache.
By default, files located at the url source are downloaded to cache_dir ~/.keras, placed in the cache_subdir dataset, and given the filename fname.So the final location for the file example.txt is ~/.keras/datasets/example.txt.
Parameters:
tf.keras.utils.get_file(fname=None, # The name of the file.If the absolute path /path/to/file.txt is specified, the file will be saved in that location.If not, the original file name will be used.origin=None, # The origin URL of the file.untar=False, # Deprecated, replaced by the extract parameter.boolean, whether the file should be decompressedmd5_hash=None, # Deprecated, replaced by the file_hash parameter.md5 hash of the file used for verificationfile_hash=None, # Expected hash string for the file after downloading.Both sha256 and md5 hash algorithms are supported.cache_subdir='datasets', # A subdirectory under the Keras cache directory where files are stored.If the absolute path /path/to/folder is specified, the file will be saved in that location.hash_algorithm='auto', # Select the hash algorithm to verify the file.There are "md5", "sha256" and "auto".The default "auto" detects the hash algorithm in use.extract=False, # True Attempt to extract the file as an archive, such as tar or zip.archive_format='auto', # The archive format in which to try to extract the file.There are "auto", "tar", "zip" and "none".'tar' includes tar, tar.gz and tar.bz files.The default 'auto' corresponds to ['tar', 'zip'].None or an empty list will return no match found.cache_dir=None # Where to store cache files, when None defaults to the default directory ~/.keras/.)Return value
Path to the downloaded filespan>
Example
dataset_path = keras.utils.get_file("auto-mpg.data", "http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data")print(dataset_path)Downloading data from http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data32768/30286 [==================================] - 0s 7us/step'C:\\Users\\Wu Caifeng\\.keras\\datasets\\auto-mpg.data'
Main reference: tf.keras.utils.get_file | TensorFlow Core v2.9.1 (google.cn)
边栏推荐
- DVWA installation tutorial (understand what you don't understand · in detail)
- Goodbye to the cumbersome Excel, mastering data analysis and processing technology depends on it
- 基于flask的三方登陆的流程
- mysql存储过程
- C语言实验一 熟悉C程序的环境
- Duplicate entry 'XXX' for key 'XXX.PRIMARY' solution.
- a different object with the same identifier value was already associated with the session
- C语言指针详解
- Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
- 如何将项目部署到服务器上(全套教程)
猜你喜欢
随机推荐
Information System Project Manager Core Test Site (55) Configuration Manager (CMO) Work
STM32——DMA
账号或密码多次输入错误,进行账号封禁
Swordsman Offer Special Assault Edition --- Day 3
pycharm专业版使用
MySQL transaction isolation level, rounding
太厉害了,终于有人能把文件上传漏洞讲的明明白白了
tf.keras.utils.get_file()
[MQ I can speak for an hour]
12个MySQL慢查询的原因分析
Temporal介绍
[Introduction to MySQL 8 to Mastery] Basics - silent installation of MySQL on Linux system, cross-version upgrade
numpy和pytorch中的元素拼接操作:stack,concatenat,cat
目标检测学习笔记
Numpy中np.meshgrid的简单用法示例
Mysql application cannot find my.ini file after installation
C语言的文件操作(一)
The interviewer asked me how to divide the database and the table?Fortunately, I summed up a set of eight-part essays
剑指offer基础版 --- 第22天
Temporal线上部署









