当前位置:网站首页>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)
边栏推荐
- Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
- torch.normal function usage
- 剑指offer专项突击版 --- 第 4 天
- 一文了解大厂的DDD领域驱动设计
- Shell重油常压塔模拟仿真与控制
- <urlopen error [Errno 11001] getaddrinfo failed>的解决、isinstance()函数初略介绍
- About the problems encountered by Xiaobai installing nodejs (npm WARN config global `--global`, `--local` are deprecated. Use `--location=glob)
- Simple read operation of EasyExcel
- Temporal客户端模型
- Summary of MySQL common interview questions (recommended collection!!!)
猜你喜欢

工作流编排引擎-Temporal

Apache DButils使用注意事项--with modifiers “public“
![<urlopen error [Errno 11001] getaddrinfo failed>的解决、isinstance()函数初略介绍](/img/a4/8c75fab6a9858c5ddec25f6a8300fb.png)
<urlopen error [Errno 11001] getaddrinfo failed>的解决、isinstance()函数初略介绍

Quickly master concurrent programming --- the basics

分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ

CentOS7 —— yum安装mysql

Multiple table query of sql statement

Temporal介绍

精解四大集合框架:List 核心知识总结

再见了繁琐的Excel,掌握数据分析处理技术就靠它了
随机推荐
再见了繁琐的Excel,掌握数据分析处理技术就靠它了
What are the advantages and disadvantages of Unity shader forge and the built-in shader graph?
Pytorch教程Introduction中的神经网络实现示例
pycharm专业版使用
Minio upload file ssl certificate is not trusted
账号或密码多次输入错误,进行账号封禁
tf.keras.utils.get_file()
Temporal对比Cadence
C语言实验三 选择结构程序设计
C语言如何分辨大小端
MySQL-如何分库分表?一看就懂
ES source code API call link source code analysis
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
Anaconda configure environment directives
三次握手与四次挥手
[mysql improves query efficiency] Mysql database query is slow to solve the problem
Flink sink ES 写入 ES(带密码)
ABC D - Distinct Trio (Number of k-tuples
Typec手机有线网卡网线转网口转接口快充方案
MySQL(更新中)