先开个文章,占块地方。
最近小用了下Swift,感觉是挺方便强大的,但是还不是很熟,这是Swift学习文档,已翻译为中文
http://numbbbbb.gitbooks.io/-the-swift-programming-language-/content/chapter1/chapter1.html
墨衍会员
·
AI 创作全网分发
墨衍智能分发
本文由作者通过墨衍一键同步至各平台
1分发平台
400+累计阅读
465平均单平台
已同步平台
优快云
微信公众号
微博
知乎
掘金
百家号
博客园
抖音
小红书
你的文章也可以这样分发
墨衍会员 ¥399起/年,写一次发全网
我也要 →
码龄12年
先开个文章,占块地方。
最近小用了下Swift,感觉是挺方便强大的,但是还不是很熟,这是Swift学习文档,已翻译为中文
http://numbbbbb.gitbooks.io/-the-swift-programming-language-/content/chapter1/chapter1.html
【无标题】EXCEL实现刷题
运用Excel开发的刷题工具,具有普遍实用性,可将WORD的试题自动导入并实现刷题。
01.swift学习开篇
之前也学习swift,学习总是断断续续,因为生活或工作,总是有很多借口。这里做个开篇。尽量坚持写下来。 转载于:https://www.cnblogs.com/damao2012/p/4987391.html...
EBS开发_创建AP付款
--以下代码于20181002在Tony环境测试通过 /* BEGIN --mo_global.init('SQLAP'); apps.fnd_global.apps_initialize(user_id => 1110, resp_id => 50597, resp_appl_id => 20003); --mo_global.set_policy_context(...
优快云支持MarkDown的话,我就搬家到这吧
记录一些疑难杂症及快乐的事还是贴上原来博客的地址吧 博客园 github.io 联系方式 email twitter 目前状态 python flask tornado ing ios swift ing
关于StartAI本地部署相关问题解答
很多小伙伴们都有接入自己本地SD的需求,对此小编整理了一些相关问题~
用Java实现森林冰火人游戏
g.drawString("游戏结束", CELL_SIZE * COLS / 2 - 100, CELL_SIZE * ROWS / 2);g.drawString("难度级别: " + difficultyLevel, 10, CELL_SIZE * ROWS + 60);g.drawString("生命值: " + playerHealth, 10, CELL_SIZE * ROWS + 20);setTitle("森林冰火人");
今日开通此博客用以记录IOS学习
1 今日开通此博客用以记录IOS学习 转载于:https://www.cnblogs.com/hw140430/p/3701568.html
视觉SLAM十四讲--第13讲 实践:设计SLAM系统(最详细的代码调试运行步骤)
最详细的代码调试运行避坑说明,也包含了我自己对代码的理解,如有理解错误的地方,欢迎指正交流。
进入Swift时代
干开发有好几年了。一
提升YOLOv8检测精度的边界框损失函数Focaler-IoU与InnerFocalerIoU的应用与效果
YOLOv8是一种常用的实时目标检测模型,基于CNN(卷积神经网络)结构并结合了一些改进技术以提高检测精度和速度。YOLOv8的核心在于边界框的预测和分类,而准确的边界框预测是提高模型整体性能的关键因素之一。在传统的IoU损失基础上,Focaler-IoU和InnerFocalerIoU进一步聚焦于边界框的边缘区域,通过调整损失权重,更好地关注难以检测的边界框,提高模型的鲁棒性和准确性。# 计算IoU# 计算Focaler-IoU损失在这里,我们定义了。
YOLOv11改进策略【卷积层】| CVPR 2024 可变形卷积 v4(DCNv4)无界权重提表达 + 线程合并降冗余,强化模型收敛速度
DCNv4(Deformable Convolution v4)是一种专为广泛视觉应用设计的高效算子,它对DCNv3进行了关键改进,有效解决了DCNv3存在的速度慢和表达能力受限等问题。
初试Swift
说实话,我刚开始一点没觉得Swift哪里比OC好,即使是现在,我依然这么觉得,在用Swift的过程中,强类型语言确实让人很是头疼啊 ##第一个 otherButtonTitles 解释一下这个可选参数类型是Array? UserArchive.unarchieveCommonThirdUserInfo()!.Site.keys 这行代码是表示解档出一个ThirdUserInfo对象并且取出Si...
粒子群算法Particle Swarm Optimization超详细解析+代码实例讲解
粒子群算法,也称粒子群优化算法或鸟群觅食算法(Particle Swarm Optimization),缩写为 PSO, 是近年来由J. Kennedy和R. C. Eberhart等开发的一种新的进化算法(Evolutionary Algorithm - EA)。
100 Days of Swift 学习笔记:Day1 基础语法入门
Day1 内容不算难,主要是熟悉 Swift 的 “严格” 风格 —— 变量常量区分、类型严格检查,这些和我之前接触的语言不太一样,但能理解为什么这么设计(减少 bug)。明天计划学逻辑判断和循环,有同样在学的朋友可以一起交流~ 代码都放在 GitHub 了(链接放评论区),欢迎围观指正!
老版QQ原生表情gif动态
这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。
LinePhone3.2.7(android端最新版本) sip客户端
SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/
Swift,你不得不学的5个原因
自从2014年WWDC,Swift已经有了数不清的改进。苹果也在2015年开源了Swift的源代码。 当苹果宣布Swift的时候,我有一点兴奋,甚至有一点吃惊。这并不是说我对Objective-C不感兴趣,恰恰相反,我是Objective-C的粉丝。然而,Swift集成了许多我喜欢的其他语言特性,如:protocols,closures...
深度学习工具包 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');```[](https://bitdeli.com/free "Bitdeli Badge")
用 Swift 来刷 leet code 吧 (1-20)
前言 为什么要用 Swift 刷 leetcode?因为我有两个想法,一是学 Swift 并且有机会练练,二是想把 leetcode 刷完。于是,这两个想法就合二为一了,现在我以基本一天一道的速度在刷。 Swift 适合用来刷 leetcode 吗?现在做了20多道题,我个人的意见是不适合。可能比纯 C 好写,但没有主流的语言 java、python 好写。 首先 Swift 这门语言效率不高,有...
android 蓝牙通讯demo
android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。
IOS学习【前言】
2016-1-14 16年开始时导师安排任务,开始IOS学习之旅 经过几天的学习,感觉还是需要作比较多的学习笔记,因此开始用博客记录整个过程,方便以后查看学习与分享。 前期准备 首先学习IOS主要面临的问题是开发设备,这里由于各种原因(钱)我选择用PC(或笔记本)跑虚拟机来运行mac系统。需要注意的是mac系统会消耗较大的内存,所以我把原来8G的内存加到了16G,但后面使用x
【优快云英雄会】好未来教育陈刚:Swift是怎样练成的
英雄会是优快云旗下针对国内IT技术领域专家展示和交流的平台。通过线下线上的互动形式,为优快云社区专家提供更多学习、合作、宣传的机会。英雄会后续将在北上广深等国内一二线城市建立分会,各个分会后期将组织技术交流活动。恰逢11月18日-20日,SDCC2016将在北京举办,届时将在大会现场召开SDCC英雄会,正式成立优快云英雄会北京分会,所在北京的重量级社区专家将受邀参加此次英雄会,面对面进行技术...
红外学习模块调试指南:破解多品牌空调协议差异
红外遥控基于载波调制与解调,其编码时序与协议栈因品牌而异,尤其在空调领域,状态全量上报、校验升级等因素让协议解析复杂度远高于电视遥控。作为智能家居硬件中的关键环节,红外学习模块需要准确捕获脉冲宽度,并配合协议库完成动态指令生成,才能覆盖多品牌、多状态的兼容需求。本文从红外编码原理出发,梳理了空调遥控协议的差异结构与温控映射规律,讲解了学习模块的选型、采样精度要求,并结合实际案例提供了一套从波形抓取、解析到回放验证的完整调试思路,帮助开发者在工程实践中快速定位“学码成功但发射无效”等典型问题。内容适用于智能家
一封来自大牛的招聘感悟: iOS开发人群到底怎么了?
上面讲到: 我通过降低招聘要求,吸引来了一大波求职者!下面是我的招聘要求: 熟练组件化架构,MVP,MVVM,MVC,ROUTER有较强的理解; 熟练掌握Objective-C语言,理解面向对象编程思想,具有较强的设计能力; 熟练掌握APNS、UI布局、数据库、网络等开发技术; 深入理解Objective-C Runtime、RunLoop等基础原理; 对App提高用户体验、性能调优、防崩溃、节...
寒城攻略:Listo 教你用Swift 语言编写 IOS 平台流媒体播放器
http://blog.youkuaiyun.com/u013096857/article/details/38148135?utm_source=tuicool&utm_medium=referral 先展示播放器效果: 依旧继承 Listo 本人的强迫症,还是从最初到完成完整的写一个攻略来记录一下,这里声明 Listo 本人也是看了很多的戴维营攻略才总结分享给大家这一篇攻略的
学习教程回顾蹒跚学步的我(下)
PS:今天上午,非常郁闷,有很多简单础基的题问搞得我有些迷茫,哎,码代几天不写就忘。目前又不当COO,还是得用心记码代哦! 大学毕业了,也开始了我漫长的动移开辟之路了。 其实,我为认我生天就不是那种为技巧而生的人。想理的任务应当更多的是与人打交道,可是又舍不得自己的专业。还有,就是在现得让自己有饭吃。 在现想起我的任务来,真一个极大的验经,人生中第一份任务是么多地要重...
一行 fit 省掉 200 行预处理:TabPFN,表格数据建模的 AutoML 基座模型
TabPFN 是一个表格建模基座模型,专治每个表格数据集都要手写预处理流水线的麻烦。几百行代码的基线,一次 fit 调用就搞定,第一次预测几秒出结果。 ## 它到底在解决什么问题? 换个新数据集,又是同一出戏:补缺失、编类别、缩特征,光预处理流水线就几百行。数据小的时候更憋屈——树模型上千行才热身,几百行就抓瞎。你要的是可用的首个基线,不是要维护的流水线。TabPFN 就是冲着它来的。 ##
Android码农如何一个星期转为iOS码农(不忽悠)
作为一个android客户端开发,如果你不懂点ios开发,怎么好意思说自己是客户端开发呢,本文讲解如何让android开发码农在一个星期上手IOS开发 –《记录自己IOS开发经历》。
博客园博客开通纪念
博客园博客开通纪念 谨以本博客献给我的OI岁月 本博客将以中文书写 主要内容 OI 算法 题解 学习笔记 OI 随笔 游记 总结 Linux github web mac swift c++ 2019年5月14日 己亥年己巳月辛亥日 作者 zty111 转载于:https://www.cnblogs.com/zty111/p/11337088.html...
460

被折叠的 条评论
为什么被折叠?



