当前位置:网站首页>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)
边栏推荐
- Linux的mysql报ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password NOYSE)
- SQL statement to range query time field
- Reference code series_1. Hello World in various languages
- Redis的初识
- MySQL8--Windows下使用压缩包安装的方法
- Lock wait timeout exceeded解决方案
- 太厉害了,终于有人能把文件上传漏洞讲的明明白白了
- C语言实验四 循环结构程序设计(一)
- 关于小白安装nodejs遇到的问题(npm WARN config global `--global`, `--local` are deprecated. Use `--location=glob)
- DVWA installation tutorial (understand what you don't understand · in detail)
猜你喜欢

MySQL-Explain详解

Redis进阶 - 缓存问题:一致性、穿击、穿透、雪崩、污染等.

MySQL8.0安装教程,在Linux环境安装MySQL8.0教程,最新教程 超详细
![[MQ I can speak for an hour]](/img/ef/863c994ac3a7de157bd39545218558.jpg)
[MQ I can speak for an hour]

Unity Framework Design Series: How Unity Designs Network Frameworks

MySQL8--Windows下使用压缩包安装的方法

如何将项目部署到服务器上(全套教程)

mysql uses on duplicate key update to update data in batches

MySQL window function

Linux系统安装mysql(rpm方式安装)
随机推荐
TOGAF之架构标准规范(一)
Apache DButils使用注意事项--with modifiers “public“
tf.keras.utils.get_file()
Duplicate entry 'XXX' for key 'XXX.PRIMARY' solution.
STM32——DMA
MYSQL下载及安装完整教程
110 MySQL interview questions and answers (continuously updated)
Quickly master concurrent programming --- the basics
太厉害了,终于有人能把文件上传漏洞讲的明明白白了
剑指offer基础版 ---- 第26天
一文了解大厂的DDD领域驱动设计
数据集划分以及交叉验证法
Temporal对比Cadence
Summary of MySQL common interview questions (recommended collection!!!)
Mysql application cannot find my.ini file after installation
剑指offer基础版 --- 第24天
【MQ我可以讲一个小时】
Anaconda配置环境指令
剑指offer基础版 ----- 第28天
Simple command of mysql