ISO的语言代码表

全球ISO语言代码表及详解 语言代码(Language Code)是一套由国际标准化组织(ISO)制定的标准,用于唯一标识世界上的各种语言。这些代码对信息处理具有重要作用,它们确保了文字信息的准确识别与交换,尤其是在国际交流、多语言软件支持、网络通信及数据库管理等领域。ISO语言代码表文件的头部信息是文件内容的指引,通常包含文件格式的版本号、生成日期、文件的编码格式以及文档说明等。这些信息为使用者提供必要的情报,帮助他们理解文件内容的组织方式和结构。 阅读详情

Language Codes:  ISO 639, Microsoft and Macintosh

 

 

 1996.12.19Mark DavisFirst version
 1997.04.14Mark DavisUpdates based on feedback from Michael Everson
 1997.07.08Mark DavisUpdates from K.D. Chang (Microsoft)
 2001.07.16Michael S. KaplanUpdates from Microsoft and Apple for new languages
 2002.09.16Magda DanishUpdates from ISO 639-2 Change Notices

 

The following is a draft list of language code correspondences between ISO codes, Microsoft codes, and Macintosh codes. (USMARC language and country codes are not included in this list).

The correspondences are not 1-1. Macintosh codes sometimes have two variants, depending on the script the language is written. In such cases, the script is indicated in parantheses in the name (where not clear from the name itself), with a one-letter abbreviation on the code. Similarly, Microsoft codes are sometimes not script-specific and in cases where a language is not really properly identified without this information, the script information appears as well.

Macintosh constants and codes are defined in enumerations in the Mac header file Script.h and Windows constants and codes are defined in the Platform SDK header file winnt.h. Note that many of the Microsoft codes have no "Windows Name" constant (these are marked "(no constant defined)" and refer to codes that have been reserved for the languages in question. For more information about the LCID (Locale ID) parameter (of which the PRIMARY_LANGID codes given below are merely a part), see the Microsoft Platform SDK docs.

Unfortunately, ISO codes are not stable, and have changed over time. There are currently three languages with multiple codes (for Hebrew, Indonesian, and Yiddish). So that you can communicate both with new and old software, one strategy is the following:

  • When reading: always read and interpret both of the variants
  • When writing: write the second, (oldest) one - marked with an asterisk - for legacy applications that cannot manage correctly the new standard code or for classes of applications for which you are not certain that they can use the new standard. All applications, file formats and protocols specified after 1995 should work with the new standard code (this will include all XML and HTML4.01 applications, and all applications that can use version 3.0 of the Unicode standard)

If you find an error in this information, please contact the Unicode office. Please note, however, that the Unicode Consortium does not own or maintain ISO 639 and neither bears responsibility for its contents nor has the ability to change them. Please do not contact the Unicode Consortium if the ISO 639 language names are not what you believe they should be. Similarly, the Unicode is not responsible for the names or codes used by Microsoft or Macintosh.

LanguageISO CodeWindows NameWin CodeMac NameMac Code
Abkhazianab    
Afaraa    
AfrikaansafLANG_AFRIKAANS0x36langAfricaans141
AlbaniansqLANG_ALBANIAN0x1clangAlbanian36
Amharicam(no constant defined)0x5elangAmharic85
ArabicarLANG_ARABIC0x01langArabic12
ArmenianhyLANG_ARMENIAN0x2blangArmenian51
AssameseasLANG_ASSAMESE0x4dlangAssamese68
Aymaraay  langAymara134
AzerbaijaniazLANG_AZERI0x2clangAzerbaijani(Cyrllic), langAzerbaijanAr(Arabic)49(C), 50(A)
Bashkirba    
BasqueeuLANG_BASQUE0x2dlangBasque129
Bengali (Bangla)bnLANG_BENGALI0x45langBengali67
Bhutanidz  langDzongkha137
Biharibh    
Bislamabi    
Bretonbr  langBreton142
BulgarianbgLANG_BULGARIAN0x02langBulgarian44
Burmesemy(no constant defined)0x55langBurmese77
Byelorussian (Belarusian)beLANG_BELARUSIAN0x23langByelorussian46
Cambodiankm(no constant defined)0x53langKhmer78
CatalancaLANG_CATALAN0x03langCatalan130
Cherokee (no constant defined)0x5c  
Chewa   langChewa92
Chinese (Simplified)zhLANG_CHINESE (SUBLANG_CHINESE_SIMPLIFIED)0x04 (0x0804)langSimpChinese33
Chinese (Traditional)zhLANG_CHINESE (SUBLANG_CHINESE_TRADITIONAL)0x04 (0x0404)langTradChinese19
Corsicanco    
CroatianhrLANG_CROATIAN0x1alangCroatian18
CzechcsLANG_CZECH0x05langCzech38
DanishdaLANG_DANISH0x06langDanish7
Divehi LANG_DIVEHI0x65  
DutchnlLANG_DUTCH0x13langDutch4
Edo (no constant defined)0x66  
EnglishenLANG_ENGLISH0x09langEnglish0
Esperantoeo  langEsperanto94
EstonianetLANG_ESTONIAN0x25langEstonian27
FaeroesefoLANG_FAEROESE0x38langFaeroese30
FarsifaLANG_FARSI0x29langFarsi, langPersian31
Fijifj    
FinnishfiLANG_FINNISH0x0blangFinnish13
Flemish LANG_DUTCH (SUBLANG_DUTCH_BELGIAN)0x13 (0x0813)langFlemish34
FrenchfrLANG_FRENCH0x0clangFrench1
Frisianfy(no constant defined)0x62  
Fulfulde (no constant defined)0x67  
GalicianglLANG_GALICIAN0x56langGalician140
Gaelic (Scottish)gd(no constant defined)0x3c (0x043c)langScottishGaelic144
Gaelic (Manx)gv  langManxGaelic145
GeorgiankaLANG_GEORGIAN0x37langGeorgian52
GermandeLANG_GERMAN0x07langGerman2
GreekelLANG_GREEK0x08langGreek (monotonic), langGreekPoly (polytonic)14(m), 148(p)
Greenlandickl    
Guaranign(no constant defined)0x74langGuarani133
GujaratiguLANG_GUJARATI0x47langGujarati69
Hausaha(no constant defined)0x68  
Hawaiian (no constant defined)0x75  
Hebrewhe, iw*LANG_HEBREW0x0dlangHebrew10
HindihiLANG_HINDI0x39langHindi21
HungarianhuLANG_HUNGARIAN0x0elangHungarian26
Ibibio (no constant defined)0x69  
IcelandicisLANG_ICELANDIC0x0flangIcelandic15
Igbo (no constant defined)0x70  
Indonesianid, in*LANG_INDONESIAN0x21langIndonesian81
Interlinguaia    
Interlingueie    
Inuktitutiu(no constant defined)0x5dlangInuktitut143
Inupiakik    
Irishga(no constant defined)0x3c (0x083c)langIrishGaelic (normal), langIrishGaelicScr (dots above)35, 146
ItalianitLANG_ITALIAN0x10langItalian3
JapanesejaLANG_JAPANESE0x11langJapanese11
Javanesejv  langJavaneseRom138
KannadaknLANG_KANNADA0x4blangKannada73
Kanuri (no constant defined)0x71  
KashmiriksLANG_KASHMIRI0x60langKashmiri61
KazakhkkLANG_KAZAK0x3flangKazakh48
Kinyarwanda (Ruanda)rw  langKiryarwanda (langRuanda)90
KirghizkyLANG_KYRGYZ0x40langKirghiz54
Kirundi (Rundi)rn  langRundi91
Konkani LANG_KONKANI0x57  
KoreankoLANG_KOREAN0x12langKorean23
Kurdishku  langKurdish60
Laothianlo(no constant defined)0x54langLao79
Latinla(no constant defined)0x76langLatin131
Latvian (Lettish)lvLANG_LATVIAN0x26langLatvian28
Limburgish ( Limburger)li    
Lingalaln    
LithuanianltLANG_LITHUANIAN0x27langLithuanian24
MacedonianmkLANG_MACEDONIAN0x2flangMacedonian43
Malagasymg  langMalagasy93
MalaymsLANG_MALAY0x3elangMalayRoman(Latin), langMalayArabic(Arabic)83(L), 84(A)
MalayalammlLANG_MALAYALAM0x4clangMalayalam72
  LANG_MANIPURI0x58  
Maltesemt(no constant defined)0x3alangMaltese16
Maorimi    
MarathimrLANG_MARATHI0x4elangMarathi66
Moldavianmo  langMoldavian53
MongolianmnLANG_MONGOLIAN0x50langMongolian(Mongolian), langMongolianCyr(Cyrillic)57(M), 58(C)
Nauruna    
NepalineLANG_NEPALI0x61langNepali64
NorwegiannoLANG_NORWEGIAN0x14langNorwegian9
Occitanoc    
OriyaorLANG_ORIYA0x48langOriya71
Oromo (Afan, Galla)om(no constant defined)0x72langOromo (langGalla)87
Papiamentu (no constant defined)0x79  
Pashto (Pushto)ps(no constant defined)0x63langPashto59
PolishplLANG_POLISH0x15langPolish25
PortugueseptLANG_PORTUGUESE0x16langPortuguese8
PunjabipaLANG_PUNJABI0x46langPunjabi70
Quechuaqu  langQuechua132
Rhaeto-Romancerm(no constant defined)0x17  
RomanianroLANG_ROMANIAN0x18langRomanian37
RussianruLANG_RUSSIAN0x19langRussian32
Sami (Lappish) (no constant defined)0x3blangSami (langLappish)29
Samoansm    
Sangrosg    
SanskritsaLANG_SANSKRIT0x4flangSanskrit65
SerbiansrLANG_SERBIAN (SUBLANG_SERBIAN_LATIN or SUBLANG_SERBIAN_CYRILLIC)0x1a (0x081a or 0x0c1a)langSerbian42
Serbo-Croatiansh    
Sesothost    
Setswanatn    
Shonasn    
SindhisdLANG_SINDHI0x59langSindhi62
Sinhalesesi(no constant defined)0x5blangSinhalese76
Siswatiss    
SlovakskLANG_SLOVAK0x1blangSlovak39
SlovenianslLANG_SLOVENIAN0x24langSlovenian40
Somaliso(no constant defined)0x77langSomali88
SpanishesLANG_SPANISH0x0alangSpanish6
Sundanesesu  langSundaneseRom139
Swahili (Kiswahili)swLANG_SWAHILI0x41langSwahili89
SwedishsvLANG_SWEDISH0x1dlangSwedish5
Syriac LANG_SYRIAC0x5a  
Tagalogtl(no constant defined)0x64langTagalog82
Tajiktg(no constant defined)0x28langTajiki55
Tamazight (no constant defined)0x5f  
TamiltaLANG_TAMIL0x49langTamil74
TatarttLANG_TATAR0x44langTatar135
TeluguteLANG_TELUGU0x4alangTelugu75
ThaithLANG_THAI0x1elangThai22
Tibetanbo(no constant defined)0x51langTibetan63
Tigrinyati(no constant defined)0x73langTigrinya86
Tongato  langTongan147
Tsongats(no constant defined)0x31  
TurkishtrLANG_TURKISH0x1flangTurkish17
Turkmentk(no constant defined)0x42langTurkmen56
Twitw    
Uighurug  langUighur136
UkrainianukLANG_UKRAINIAN0x22langUkrainian45
UrduurLANG_URDU0x20langUrdu20
UzbekuzLANG_UZBEK0x43langUzbek47
Venda (no constant defined)0x33  
VietnameseviLANG_VIETNAMESE0x2alangVietnamese80
Volapükvo    
Welshcy(no constant defined)0x52langWelsh128
Wolofwo    
Xhosaxh(no constant defined)0x34  
Yi (no constant defined)0x78  
Yiddishyi, ji*(no constant defined)0x3dlangYiddish41
Yorubayo(no constant defined)0x6a  
Zuluzu(no constant defined)0x35 
ISO639-1语言缩写代码 ISO639-1语言缩写标准,来自International Organization for Standardization。详情可参考https://www.iso.org/iso-639-language-codes.html 立即下载

相关推荐

MySQL-ISO-639-1-language-codes:ISO语言代码SQL转储

MySQL-ISO-639-1-language-codes:ISO语言代码SQL转储

全球语言标准码(ISO-639)

最近需要给账户标注语言实现多国语言推送的问题。上去先来一波,Chinese, English,顿时感觉这里哪里有点不对。平时看到的标注应该是zh_CN, en_US 之类的,上面的写法肯定太土,需要学习一下,学习之后发现语言是有专门的ISO标准的 ISO-639。 特此记录一下。 上述格式即为 (ISO-639 Language Code)_(ISO-3166 Country Codes...

Andy Tools 1万+

【星火】海思HI3516C开发板实战:基于LVGL与MPP库的行车记录仪/电子显微镜方案

本文详细介绍了基于海思HI3516CV500开发板,结合LVGL图形库与海思MPP媒体处理平台,实现行车记录仪与电子显微镜方案的完整实战过程。内容涵盖从系统环境搭建、驱动配置到应用开发的全流程,重点解析了MPP视频流处理管道与LVGUI界面协同工作的核心机制,为嵌入式音视频开发提供了可复用的参考方案。

weixin_42126677的博客 166

Language Codes: ISO 639, Microsoft and Macintosh___收藏

Language Codes:  ISO 639, Microsoft and Macintosh  1996.12.19Mark DavisFirst version 1997.04.14Mark DavisUpdates based on feedback from Michael Everson 1997.07.08Mark Dav

温兵的专栏 1541

Unity中5自由度机械臂运动控制与夹爪交互仿真实践

本文详细介绍了在Unity中实现5自由度机械臂运动控制与夹爪交互仿真的完整流程。从模型导入、物理组件配置到关节运动控制算法(包括逆运动学IK),再到夹爪抓取逻辑和工业分拣案例实战,提供了可落地的代码示例与性能优化方案,助力开发者快速掌握机械臂仿真核心技术。

weixin_29021757的博客 452

【UE 反射】反射的原理是什么?如何使用机制?

静态类型检查确保了类型的早期一致性和高效的代码执行,但减少了灵活性。动态类型检查提供了更大的灵活性,但增加了运行时的开销和潜在的错误。反射作为一种动态特性,无论是在静态类型语言还是动态类型语言中,都提供了强大的运行时类型操作能力,但也伴随着性能和安全性方面的权衡。通过理解这些联系,开发者可以在不同的编程语言和应用场景中选择适合的类型检查方式和反射机制,以实现所需的动态行为和灵活性,同时保证性能和安全性。

hhw_hhw的博客 6041

ISO的国家代码和语言代码

ISO-3166 国家代码 Table 20-1  ISO-3166 Country Codes Country ISO-3166 Country Code AFGHANISTAN AF ALBANIA AL ALGERIA DZ AMERICAN S

Paul_Huang的Footprint 8184

LLMOps的崛起:如何利用Langfuse和Opik构建高效的模型监控与评估体系

本文探讨了LLMOps的崛起,详细介绍了如何利用Langfuse和Opik构建高效的模型监控与评估体系。通过开源工具Langfuse的全景监控方案和Opik的三层评估体系,帮助AI工程团队实现大语言模型的全生命周期管理,提升模型性能和迭代效率。文章还提供了实战技巧和工具链集成方案,助力企业优化AI应用。

ll5678的博客 688

ISO语言代码

// LanguageISO Code Abkhazian ab Afar aa Afrikaans af Albanian sq Amharic am Arabic ar Armenian hy Assamese as Aymara ay Azerbaijani ...

weixin_34023982的博客 248

三维模型转变为点云模型的好工具——CloudCompare使用小记

普通三维模型能够直观地展示物体的三维全貌,但是在一些场合需要将三维模型变为相应的点云模型进行展示,而使用激光雷达等传感器采集到的点云信息往往只能反应模型表面的情况,或是使用PCL库中的可执行文件进行转换,这两种操作较为麻烦。笔者最近就遇到了这样一个情况,找到了一个名叫CloudCompare(CC)的软件,能够支持将多种文件格式的三维模型转变为点云模型。以下将本人在使用过程中所使用到的一些操作简记下来供朋友们和将来的自己参考。 一、下载 CloudCompare是一款免费软件,其可以在CloudComp

hdlwyt的博客 2万+

YOLOv11改进 | 网络结构代码逐行解析(二) | yolov11中的Mosaic增强详解

本文给大家带来的是YOLOv10中的Mosaic增强代码的详解,可能有部分人对于这一部分比较陌生,有的读者可能知道Mosaic增强但是不知道其工作原理,具体来说Mosaic增强就是指我们的数据集中的图片在输入给模型之前的一个处理过程(我们的图片并不是直接就输入给模型了,大家的训练结果中的结果检测图片大家可以看到数据集中多个图片会组合在一起这就是简单的Mosaic增强),下面我就来讲解一下其在YOLOv10中工作原理和代码定义,下面图片为一个Mosaic增强后的图片。​。

Snu77的博客 5036

ISO 639-1代码表 各种语言语种对应缩写表

ISO 639-1代码表 语言语种对应英文缩写表

qq_40266601的博客 1665

【AUTOSAR-E2E】-1.4-详述E2E Transformer解决方案

共13页精讲 目录 1“Data Transformation”介绍 1.1 基于SOME/IP Transformer 1.2 基于COM Based Transformer 2 ComXf(COM Based Transformer)介绍 2.1 ComXf(COM Based Transformer)功能规范 2.2 ComXf(COM Based Transformer)提供的服务 2.3 配置注意事项 3 E2EXf(E2E Transformer)介绍 3.1 E2EX...

「汽车电子助手」的博客 4721

墨语灵犀入门指南:33语种语言代码表、ISO标准与‘华夏/泰西’别名映射

本文介绍了如何在星图GPU平台自动化部署墨语灵犀(Moyu Lingxi)镜像,实现33种语言的AI深度翻译。该工具融合东方美学设计,提供文学级的翻译体验,典型应用于跨语言商务邮件、学术文献翻译等场景,助力用户高效处理多语言内容。

weixin_35756690的博客 367

【原理图PCB专题】Cadence 17.4版本导出excel版本坐标文件

Cadence 17.4版本导出坐标文件往往都是txt格式,并且无标题、导出时间、导出设计工程多名称等信息。那么怎么样才能导出有带这些信息的excel版本并格式好看的坐标文件呢?

一点硬件 2768

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

HTML Language Codes

文章来源:https://www.thoughtco.com 网页是用什么语言写的,汉字---zh,美国:英文--en. Name of Language ISO 639-1 Code Afar aa Abkhazian ab Afrikaans af Akan ak Alb

monica12的专栏 1193

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

HTML中的国家名称代码表

HTML中的国家名称代码表 全部的国家名称的英文缩写方式,在html文件中可以使用content-language属性表示。 下表参考自ISO 3166-1 引用网址:http://www.dreamdu.com/xhtml/names_of_countries/ A | B | C | D | E | F | G | H | I | J | K | L |

whereismatrix的专栏 9592

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

ToolsSet之:ASCII字符表和国际标准代码表

ToolsSet中Other菜单下的ASCII Table是一个ASCII字符列表查看工具,其中包含256个ASCII字符的各种信息。

BinField的专栏 438

Android 系统(44)---多语言

[MTK 平台多语言]如何打开语言支持计划中的语言?如何打开一种新语言?如何设置开机默认语言?[Solution]一、如何打开语言支持计划中的语言?Android KK JB关于MTK语言支持情况请参考:FAQ03761请打开文件:mediatek/config/${Project}/ProjectConfig.mk找到宏MTK_PRODUCT_LOCALES,把所需的语言代码添加进去,比如添加越...

zhangbijun1230的专栏 3454

ISO语言代码(ISO-639) 附SQL语句

ISO语言代码(ISO-639) 附SQL语句 语言代码 国家/ 地区 语言代码 国家/ 地区 af 公用荷兰语 is 冰岛语 af-ZA 公用荷兰语 - 南非 is-IS 冰岛的 -冰岛 sq 阿尔巴尼亚 id 印尼 sq-AL 阿尔巴尼亚 -阿尔巴尼亚 id-ID 印尼 -印尼 ar 阿拉伯语 it 意大利 ar-DZ 阿拉伯语 -阿尔及利亚 it-IT 意...

孤独的梦1012 1700

Hunyuan-MT-7B API如何调用?Python代码实例详细说明

本文介绍了如何在星图GPU平台上自动化部署Hunyuan-MT-7B-WEBUI镜像,快速构建本地化机器翻译服务。通过标准化API调用,用户可高效实现中英及维吾尔语、藏语等38种语言的高质量互译,典型应用于多语种产品说明书本地化、跨境客户邮件实时处理等场景。

weixin_29859471的博客 357

ISO语言代码(ISO-639)与国家代码(ISO-3166)

        在QT支持国际化时,常调用函数QLocale::system().name()以“语言_国家”的形式返回系统场景的名字,比如简体中文是zh,中国的国家代码为CN,所以返回值为zh_CN。语言代码                   af 南非荷兰语sq 阿尔巴尼亚语

沙漠黑鸟的专栏 2万+

国际标准之语言编码 - ISO-639

ISO-639-1是两个字母的语言编码,ISO-639-2和ISO-639-3是3个字母的编码。 在我们在软件配置或相关开发时需要对语言进行操作,作为参数或进行识别时,就需要用到这个语言编码了。 ISO639-1主要是用于术语、辞书编纂和语言学,也适用于任何需要以2字母代码形式表示语种的工作领域(尤其是计算机系统)。 ISO639-2不仅包括ISO639-1中的全部语种,也包括ISO639-1以外的语言,同时还包括集合语种,以便当需要更详细编码时能进行特殊目的的编码。 ISO639-1中列出

guoqx的专栏 1万+

语言代码表

http://www.lingoes.cn/zh/translator/langcode.htm https://datahub.io/core/language-codes 语言代码 语言名称 af 南非语 af-ZA 南非语 ar 阿拉伯语 ar-AE 阿拉伯语(阿联酋) ar-BH 阿拉伯语(巴林) ...

weixin_34341117的博客 3874
上一篇: Flex配置过程总结(附注册码)
下一篇: servlets基础
getmc
博客等级 码龄21年 2粉丝 14原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址