TGViewer
DPS Build DPS Build @dps_build · 1.01K subscribers
Post #270 417
DPS Build 说出来不怕笑话,花了点时间,找到了 bug。 之前的写法使用 pandas.Series.apply,按行处理,等于是把 GPU 当 CPU 用; 修复之后,用了 pandas 的向量化操作,性能成倍提升。原先10000条数据用了7分28秒才算完,用上 mps 之后,只要26.9秒,提升了16倍。
花了一周时间完成了这个 assignment,记录了一下整个开发历程。

简单说来,就是给定一个数据集,然后做分类预测,预测的是文本和图片之间的相关性。但是这个数据集的特征非常有限,没有图片数据。

因为在短时间内抓取图片不现实,所以最后的方案就是在数据集做各种 feature engineering,embedding 对于整体提升非常大。

当然 overfitting 也比较明显,如果有更多时间,肯定需要在这方面下更多功夫。

如果大家有什么建议,也请赐教。

https://letters.acacess.com/ltr/
Daily Productivity Sharing A Machine Learning Assignment Note Recently I received a machine learning assignment: The goal of this assignment is to predict if an image is relevant or not, given a text query. More details about this assignment: The classical search system takes in a query, generates K candidates…
More from @dps_build
  1. Oct 9, 2026看了一个潜在客户的需求,要在两个月内帮他们把所有海外市场的数据整合好,然后还要各种可视化,最终能辅助他们决策。他们把这称之为 mvp。 我问了问,你们对于 mvp 的定义是覆盖以上…
  2. Oct 4, 2026试了一下 Codex Dot,对我来说没有太大帮助,因为和我的 paseo workflow 基本一致: 1. 在家里的服务器上跑 paseo daemon,用 cloudflar…
  3. Oct 1, 2026再次在釜山地铁体验了鬼打墙一般的体验: 1. 地铁入口的售票机可以买单词票,只接受现金和插入信用卡支付,不支持 tap 或者移动支付; 2. 单日票或者三日票不能在机器上购买,只能…
  4. Sep 24, 2026迄今为止买过的,最贵的 Apple 产品
  5. Sep 23, 2026看了下 DHL 的记录,从深圳到香港,然后就飞了。有意思的是,飞机还没飞,目的地的清关已经开始了。 door to door 不到24小时。可惜我不在家,错过了第一次投递😢
  6. Sep 22, 2026提前从深圳发货了,说是已经备货成功,物流准备提货了。提早了整整一个月,Apple 的供应链真厉害!
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →