{"id":375755,"date":"2023-07-26T08:59:27","date_gmt":"2023-07-26T07:59:27","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=go&#038;p=375755"},"modified":"2023-07-27T10:42:56","modified_gmt":"2023-07-27T09:42:56","slug":"go-2","status":"publish","type":"go","link":"https:\/\/blog.jetbrains.com\/zh-hans\/go\/2023\/07\/26\/go-2\/","title":{"rendered":"Go \u8bed\u8a00\u5728\u673a\u5668\u5b66\u4e60\u4e2d\u6709\u672a\u6765\u5417\uff1f"},"content":{"rendered":"<p><em>\u672c\u6587\u7531\u5916\u90e8\u8d21\u732e\u8005\u64b0\u5199\u3002<\/em><\/p>\n<div class=\"about-author \">\n<div class=\"about-author__box\">\n<div class=\"row\">\n<div class=\"about-author__box-img\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2023\/05\/qDe01JDZsgN1-oiMvLEGaG2j7ivSi9coWBW3k3AyhLw.jpg\" alt=\"\"><\/div>\n<div class=\"about-author__box-text\">\n<h4>Sooter Saalu<\/h4>\n<p>Sooter Saalu \u662f\u4e00\u4f4d\u6570\u636e\u4e13\u5bb6\uff0c\u5728\u804c\u4e1a\u751f\u6daf\u4e2d\u62c5\u4efb\u8fc7\u6570\u636e\u5206\u6790\u5e08\u3001\u6570\u636e\u79d1\u5b66\u5bb6\u548c\u6570\u636e\u5de5\u7a0b\u5e08\u3002 \u4ed6\u5177\u6709\u4e34\u5e8a\u5fc3\u7406\u5b66\u6559\u80b2\u80cc\u666f\uff0c\u81f4\u529b\u4e8e\u4e3a\u6280\u672f\u548c\u975e\u6280\u672f\u53d7\u4f17\u64b0\u5199\u5f15\u4eba\u5165\u80dc\u7684\u6570\u636e\u6545\u4e8b\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/soot3\" target=\"_blank\" rel=\"nofollow noopener\">GitHub<\/a><\/p>\n<p><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><a href=\"https:\/\/go.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go<\/a> \u662f\u4e00\u79cd\u5f00\u6e90\u7f16\u7a0b\u8bed\u8a00\uff0c\u6700\u521d\u7531 Google \u8bbe\u8ba1\uff0c\u7528\u4e8e\u4f18\u5316\u7cfb\u7edf\u7ea7\u670d\u52a1\u7684\u6784\u5efa\u548c\u4f7f\u7528\u3001\u5728\u5927\u578b\u4ee3\u7801\u5e93\u4e0a\u8f7b\u677e\u5de5\u4f5c\uff0c\u4ee5\u53ca\u5229\u7528\u591a\u6838\u8054\u7f51\u673a\u5668\u3002 Go \u4e8e 2009 \u5e74\u63a8\u51fa\uff0c\u4f5c\u4e3a\u4e00\u79cd\u9759\u6001\u7c7b\u578b\u548c\u7f16\u8bd1\u578b\u7f16\u7a0b\u8bed\u8a00\uff0c\u6df1\u53d7 C \u8bed\u8a00\u7684\u5f71\u54cd\uff0c\u6ce8\u91cd\u7b80\u5355\u6027\u3001\u5b89\u5168\u6027\u548c\u5e76\u53d1\u6027\u3002<\/p>\n<p>Go \u6700\u4e3b\u8981\u7528\u4e8e\u521b\u5efa\u5927\u89c4\u6a21\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f8b\u5982 Docker \u548c Kubernetes\u3002 \u6b64\u5916\uff0c\u7531\u4e8e\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u6548\u7684\u8de8\u5e73\u53f0\u6027\u80fd\u548c\u6613\u6269\u7f29\u6027\uff0cGo \u88ab Netflix\u3001PayPal \u548c Uber \u7b49\u516c\u53f8\u5e7f\u6cdb\u4f7f\u7528\u3002 \u4e0d\u8fc7\uff0c\u5c3d\u7ba1 Go \u6709\u5f88\u591a\u4f18\u70b9\uff0c\u4f46\u5b83\u5728\u673a\u5668\u5b66\u4e60 (ML) \u4e2d\u5e76\u4e0d\u5e38\u7528\u3002<\/p>\n<p>\u672c\u6587\u5c06\u63a2\u7d22\u5728 ML \u4e2d\u79ef\u6781\u4f7f\u7528 Go \u6240\u8981\u9762\u5bf9\u7684\u6311\u6218\uff0c\u4ee5\u53ca Go \u53ef\u4ee5\u5728 ML \u9886\u57df\u7acb\u8db3\u7684\u9014\u5f84\u3002<\/p>\n<h2 class=\"wp-block-heading\"><strong>\u5c06 Go \u7528\u4e8e\u673a\u5668\u5b66\u4e60\u7684\u4e3b\u8981\u6311\u6218<\/strong><\/h2>\n<p>Go \u662f\u4e00\u79cd\u5f3a\u5927\u9ad8\u6548\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u901f\u5ea6\u5feb\u3001\u6027\u80fd\u9ad8\uff0c\u80fd\u591f\u6ee1\u8db3 AI \u89e3\u51b3\u65b9\u6848\u7684 CPU \u5bc6\u96c6\u578b\u3001\u9ad8\u8ba1\u7b97\u91cf\u8ba1\u7b97\u9700\u6c42\u3002 \u5b83\u6bd4 Python \u66f4\u5feb\uff0c\u5e76\u5177\u6709\u6613\u7528\u3001\u9ad8\u6548\u548c\u5e76\u53d1\u7b49\u8bf8\u591a\u4f18\u52bf\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4f18\u4e8e ML \u4e2d\u4f7f\u7528\u7684\u5176\u4ed6\u8bed\u8a00\u3002<\/p>\n<p>Go \u6709\u6f5c\u529b\u521b\u5efa\u7a33\u5065\u4e14\u53ef\u6269\u7f29\u7684 ML \u5e94\u7528\uff0c\u751a\u81f3\u6027\u80fd\u4e5f\u6bd4\u67d0\u4e9b\u7ade\u54c1\u66f4\u4e3a\u4f18\u8d8a\uff0c\u4f46\u5b83\u5728 ML \u4e2d\u4ecd\u7136\u662f\u4e00\u4e2a\u88ab\u5ffd\u89c6\u7684\u9009\u62e9\u3002 Go \u5728 ML \u4e2d\u7684\u4f4e\u91c7\u7528\u7387\u4e3b\u8981\u5f52\u56e0\u4e8e\u5b83\u9762\u4e34\u7684\u4e00\u4e9b\u91cd\u5927\u6311\u6218\uff0c\u800c ML \u9886\u57df\u7684\u65e7\u7f16\u7a0b\u8bed\u8a00\u5df2\u7ecf\u89e3\u51b3\u4e86\u8fd9\u4e9b\u6311\u6218\u3002 Go \u9762\u4e34\u7684\u6311\u6218\u5305\u62ec\u7f3a\u5c11\u9ad8\u7ea7\u5e93\u3001\u6ca1\u6709 CUDA \u7684\u539f\u751f\u7ed1\u5b9a\uff0c\u4ee5\u53ca\u7edf\u8ba1\u548c\u5448\u73b0\u529f\u80fd\u4e0d\u591f\u5b8c\u5584\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u7f3a\u5c11\u9ad8\u7ea7\u5e93<\/strong><\/h3>\n<p>\u4f5c\u4e3a\u4e00\u95e8\u76f8\u5bf9\u8f83\u65b0\u7684\u8bed\u8a00\uff0c\u76f8\u8f83\u4e8e\u5df2\u7ecf\u5b58\u5728\u4e86\u6570\u5341\u5e74\u4e14\u62e5\u6709\u5b8c\u5584 ML \u751f\u6001\u7cfb\u7edf\u548c\u5e93\u7684\u5176\u4ed6\u8bed\u8a00\uff0cGo \u7684\u5de5\u5177\u548c\u5e93\u8981\u5c11\u5f97\u591a\u3002 \u56e0\u6b64\uff0cGo \u53ef\u7528\u4e8e ML \u4efb\u52a1\u7684\u9ad8\u8d28\u91cf\u5e93\u548c\u5de5\u5177\u66f4\u5c11\u3002<\/p>\n<p>\u8fd9\u610f\u5473\u7740\uff0c\u60f3\u4e3a ML \u4f7f\u7528 Go \u7684\u5f00\u53d1\u8005\u5fc5\u987b\u82b1\u8d39\u66f4\u591a\u65f6\u95f4\u6784\u5efa\u81ea\u5b9a\u4e49\u89e3\u51b3\u65b9\u6848\uff0c\u6216\u8005\u4e0e\u5e76\u975e\u4e13\u4e3a Go \u8bbe\u8ba1\u7684\u73b0\u6709\u5e93\u548c\u6846\u67b6\u96c6\u6210\u3002<\/p>\n<p>\u591a\u5e74\u6765\uff0cGo \u5e93\u5df2\u7ecf\u83b7\u5f97\u591a\u9879\u663e\u8457\u6539\u8fdb\uff1a<a href=\"https:\/\/github.com\/sjwhitworth\/golearn\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">GoLearn<\/a> \u63d0\u4f9b\u4e86 <a href=\"https:\/\/scikit-learn.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">scikit-learn<\/a> \u6837\u5f0f\u7684\u62df\u5408\u4e0e\u9884\u6d4b\u529f\u80fd\uff0c\u4ee5\u53ca\u6d4b\u8bd5\u62c6\u5206\u548c\u4ea4\u53c9\u9a8c\u8bc1\u6548\u7528\u51fd\u6570\uff0c<a href=\"https:\/\/github.com\/surenderthakran\/gomind\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">GoMind<\/a> \u63d0\u4f9b\u4e86\u795e\u7ecf\u7f51\u7edc\u529f\u80fd\uff0c\u7c7b\u4f3c\u4e8e <a href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">TensorFlow<\/a> \u7684\u8ba1\u7b97\u56fe\u8ba1\u7b97 ML \u5b66\u4e60\u5e93 <a href=\"https:\/\/github.com\/gorgonia\/gorgonia\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Gorgonia<\/a> \u63d0\u4f9b\u4e86\u7f29\u653e\u529f\u80fd\u3002<\/p>\n<p>\u4f46\u603b\u4f53\u800c\u8a00\uff0c\u8fd9\u4e9b\u5e93\u7684\u6df1\u5ea6\u4ecd\u900a\u4e8e\u4ee5 Python \u4e3a\u4e2d\u5fc3\u5e76\u4e14\u7ecf\u8fc7\u4e86\u6570\u5341\u5e74\u53d1\u5c55\u7684\u5e93\u3002\u5e76\u4e14\uff0c\u5728\u67d0\u4e9b\u529f\u80fd\u4e0a\uff0cGo \u4e5f\u4f1a\u4f53\u73b0\u51fa\u663e\u8457\u5dee\u8ddd\uff0c\u4f8b\u5982\u81ea\u7136\u8bed\u8a00\u5904\u7406 (NLP) \u4efb\u52a1\uff0c\u7279\u522b\u662f\u4e0e <a href=\"https:\/\/spacy.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">spaCy<\/a> \u548c <a href=\"https:\/\/www.nltk.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">NLTK<\/a> \u76f8\u6bd4\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u6ca1\u6709 CUDA \u7684\u539f\u751f\u7ed1\u5b9a<\/strong><\/h3>\n<p><a href=\"https:\/\/developer.nvidia.com\/cuda-toolkit\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u7edf\u4e00\u8ba1\u7b97\u8bbe\u5907\u67b6\u6784 (CUDA)<\/a> \u662f NVIDIA \u4e3a\u56fe\u5f62\u5904\u7406\u5355\u5143 (GPU) \u7f16\u7a0b\u5f00\u53d1\u7684\u5e76\u884c\u8ba1\u7b97\u5e73\u53f0\u548c\u7f16\u7a0b\u6a21\u578b\u3002 \u5b83\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u5229\u7528 NVIDIA GPU \u7684\u9ad8\u6027\u80fd\u8ba1\u7b97\u80fd\u529b\u52a0\u5feb\u5404\u79cd\u5e94\u7528\uff0c\u4f8b\u5982\uff0cML\u3001\u79d1\u5b66\u8ba1\u7b97\u3001\u56fe\u50cf\u548c\u89c6\u9891\u5904\u7406\u7b49\u3002<\/p>\n<p>\u4ee5 GPU \u7684\u5927\u89c4\u6a21\u5e76\u884c\u6027\u52a0\u5feb\u53ef\u5e76\u884c\u5316\u7684\u8ba1\u7b97\u662f CUDA \u7684\u4e3b\u8981\u4f18\u70b9\u3002 \u7136\u800c\uff0cGo \u4e0d\u50cf Python \u90a3\u6837\u5177\u6709\u4e0e CUDA \u7684\u539f\u751f\u7ed1\u5b9a\u3002<\/p>\n<p>\u8981\u5728 Go \u4ee3\u7801\u4e2d\u4f7f\u7528 CUDA\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165\u5e76\u5229\u7528 C \u51fd\u6570\u6765\u521b\u5efa CUDA \u7ed1\u5b9a\u3002 \u516c\u5e73\u5730\u8bf4\uff0cC \u4ee3\u7801\u901a\u8fc7 <a href=\"https:\/\/pkg.go.dev\/cmd\/cgo\" target=\"_blank\" rel=\"noreferrer noopener\">cgo \u547d\u4ee4<\/a>\u5d4c\u5165 Go\uff0c\u4ece\u800c\u53ef\u4ee5\u521b\u5efa\u8c03\u7528 C \u4ee3\u7801\u7684 Go \u8f6f\u4ef6\u5305\u3002 \u4f46\u662f\uff0c\u53ea\u6709\u719f\u7ec3\u638c\u63e1 C \u8bed\u8a00\u624d\u80fd\u4f9d\u8d56 C \u4ee3\u7801\u548c cgo \u8fdb\u884c\u9ad8\u6548\u7684\u7f16\u7801\u548c\u8c03\u8bd5\u3002 \u8fd9\u4f1a\u4ea7\u751f\u5de8\u5927\u7684\u5f00\u9500\uff0c\u540c\u65f6\u4e5f\u4f1a\u4ea7\u751f\u7279\u5b9a\u4e8e C \u8bed\u8a00\u7684\u95ee\u9898\uff0c\u4f8b\u5982\u5185\u5b58\u5b89\u5168\u60c5\u51b5\u548c\u5b89\u5168\u6f0f\u6d1e\u3002<\/p>\n<p>\u4e5f\u6709\u7b2c\u4e09\u65b9\u4ee3\u7801\u8f6f\u4ef6\u5305\u5e26\u6709\u7528\u4e8e CUDA \u7684 Go \u7ed1\u5b9a\u7684\u6548\u7528\u51fd\u6570\uff0c\u4f8b\u5982 <a href=\"https:\/\/github.com\/unixpickle\/cuda\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">cuda<\/a>\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u5b9e\u9a8c\u7ea6\u675f<\/strong><\/h3>\n<p>\u4ece\u672c\u8d28\u4e0a\u8bb2\uff0cGo \u5e76\u4e0d\u7279\u522b\u9002\u5408\u5b9e\u9a8c\u3002 Go \u4ee3\u7801\u662f\u4e00\u79cd\u7f16\u8bd1\u578b\u8bed\u8a00\uff0c\u4f1a\u8f6c\u5316\u4e3a\u53ef\u7531 CPU \u76f4\u63a5\u6267\u884c\u7684\u673a\u5668\u7801\uff0c\u800c\u4e0d\u662f\u5728\u8fd0\u884c\u65f6\u7531\u8fd0\u884c\u65f6\u73af\u5883\u89e3\u91ca\u3002 \u8fd9\u9879\u7279\u6027\u6709\u52a9\u4e8e\u63d0\u9ad8 Go \u7684\u901f\u5ea6\u548c\u6548\u7387\uff0c\u4f46\u662f\uff0c\u5982\u679c\u4e0d\u5148\u7f16\u8bd1\uff0c\u5c31\u65e0\u6cd5\u7f16\u5199\u548c\u6267\u884c Go \u4ee3\u7801\u3002 \u56e0\u6b64\uff0c\u76f8\u5bf9\u4e8e Python \u548c R \u7b49\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u5728 Go \u4e2d\u76f8\u5bf9\u96be\u4ee5\u5c1d\u8bd5\u4e0d\u540c\u7684\u60f3\u6cd5\u548c\u6d4b\u8bd5\u4e0d\u540c\u7684\u95ee\u9898\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n<p>Go \u4e0d\u50cf\u5176\u4ed6\u8bed\u8a00\u90a3\u6837\u62bd\u8c61\u81ea\u5e95\u5c42\u786c\u4ef6\u3002 \u8fd9\u5bf9\u4e8e\u9700\u8981\u4f4e\u7ea7\u4f18\u5316\u6216\u4e25\u683c\u63a7\u5236\u786c\u4ef6\u8d44\u6e90\u7684\u4efb\u52a1\u6765\u8bf4\u53ef\u80fd\u662f\u4e00\u4e2a\u4f18\u52bf\uff0c\u4f46\u4e5f\u53ef\u80fd\u4f7f Go \u4ee3\u7801\u66f4\u52a0\u5197\u957f\uff0c\u9700\u8981\u66f4\u591a\u7684\u524d\u671f\u8bbe\u7f6e\u548c\u914d\u7f6e\uff0c\u800c Python \u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u76f8\u5bf9\u800c\u8a00\u66f4\u7075\u6d3b\u3001\u66f4\u6613\u7528\u3002 \u8003\u8651\u5230 scikit-learn \u548c TensorFlow \u7b49\u5e93\u548c\u6846\u67b6\u7684\u6df1\u5ea6\uff0c\u4ee5\u53ca\u5728\u4e00\u4e2a\u8f6f\u4ef6\u5305\u4e2d\u4e3a\u7279\u5f81\u63d0\u53d6\u3001\u805a\u7c7b\u548c\u964d\u7ef4\u7b49\u4efb\u52a1\u63d0\u4f9b\u66f4\u7b80\u5355\u89e3\u51b3\u65b9\u6848\u7684\u53ef\u7528\u6027\uff0cGo \u5e76\u4e0d\u662f ML \u5b9e\u9a8c\u7684\u6700\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<p>Go \u8fd9\u6837\u7684\u7f16\u8bd1\u578b\u8bed\u8a00\u901a\u5e38\u662f\u9ad8\u6027\u80fd\u4efb\u52a1\u7684\u66f4\u4f18\u9009\uff0c\u4f8b\u5982\u670d\u52a1\u5668\u7aef\u7f16\u7a0b\u548c\u5b9e\u65f6\u5e94\u7528\u7a0b\u5e8f\u4f18\u5316\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u6570\u5b66\u548c\u7edf\u8ba1\u529f\u80fd\u4e0d\u8db3<\/strong><\/h3>\n<p>\u5982\u524d\u6240\u8ff0\uff0cGo \u7f3a\u4e4f Python \u7b49\u4e1a\u754c\u91cd\u91cf\u7ea7\u9009\u624b\u7684\u6df1\u5ea6\u3002 \u5b83\u53ea\u6709\u5c11\u91cf\u4e13\u6ce8\u4e8e\u7edf\u8ba1\u3001\u5fae\u79ef\u5206\u548c\u77e9\u9635\u64cd\u4f5c\u7684\u4e13\u5c5e\u5e93\u548c\u8f6f\u4ef6\u5305\uff0c\u4e0d\u8db3\u4ee5\u6ee1\u8db3 ML \u548c\u4eba\u5de5\u667a\u80fd\u5f00\u53d1\u7684\u9700\u6c42\u3002<\/p>\n<p>\u8fd9\u4e0d\u4e00\u5b9a\u5bf9\u6240\u6709\u4eba\u6765\u8bf4\u90fd\u662f\u52a3\u52bf\uff0c\u6709\u4e9b\u5f00\u53d1\u8005\u4e50\u4e8e\u4e3a ML \u7b97\u6cd5\u6216\u6570\u5b66\u903b\u8f91\u4e3b\u52a8\u7f16\u5199\u4ee3\u7801\u3002 \u4e0d\u8fc7\uff0c\u8fd9\u4e5f\u8868\u793a Go \u5728\u76f8\u540c\u6570\u636e\u64cd\u4f5c\u3001\u5206\u6790\u548c\u9884\u6d4b\u7b97\u6cd5\u4e0a\u7684\u6613\u7528\u6027\u4ecd\u8981\u4f4e\u4e8e Python\u3002<\/p>\n<p>\u603b\u4f53\u800c\u8a00\uff0cPython\u3001R \u548c Julia \u63a8\u51fa\u6700\u65e9\uff0c\u5728 ML \u793e\u533a\u4e2d\u5730\u4f4d\u7a33\u56fa\u3002 Go \u8981\u60f3\u6210\u4e3a\u53ef\u884c\u7684\u66ff\u4ee3\u65b9\u6848\uff0c\u8fd8\u6709\u5f88\u957f\u4e00\u6bb5\u8def\u8981\u8d70\uff0c\u7279\u522b\u662f\u8fd9\u4e9b\u73b0\u6709\u7f16\u7a0b\u8bed\u8a00\u4e5f\u5728\u6301\u7eed\u53d1\u5c55\uff0c\u4f7f\u5176 ML \u548c AI \u529f\u80fd\u66f4\u4f18\u79c0\u3001\u66f4\u7b80\u5355\u3001\u66f4\u6709\u6548\u3002<\/p>\n<h2 class=\"wp-block-heading\"><strong>Go \u4e2d\u7684\u9ad8\u7ea7\u5e93<\/strong><\/h2>\n<p>Go \u4e2d\u7684 <a href=\"https:\/\/www.gonum.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Gonum<\/a>\u3001<a href=\"https:\/\/github.com\/gorgonia\/gorgonia\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Gorgonia<\/a> \u548c <a href=\"https:\/\/github.com\/sjwhitworth\/golearn\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">GoLearn<\/a> \u7b49\u9ad8\u7ea7\u5e93\u4e3a\u6784\u5efa\u548c\u8bad\u7ec3\u795e\u7ecf\u7f51\u7edc\u3001\u6267\u884c\u6570\u503c\u8ba1\u7b97\u548c\u5176\u4ed6 ML \u4efb\u52a1\u63d0\u4f9b\u4e86\u5de5\u5177\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5b83\u4eec\u7684\u529f\u80fd\u5e76\u4e0d\u5982 Python \u5e93\u9009\u9879\u4e2d\u7684\u529f\u80fd\u4e30\u5bcc\u3002 TensorFlow\u3001scikit-learn \u548c spaCy \u7b49 Python \u5e93\u548c\u6846\u67b6\u662f\u4e3a\u6ee1\u8db3 ML \u5f00\u53d1\u8005\u7684\u9700\u6c42\u800c\u521b\u5efa\u548c\u8fed\u4ee3\u5f00\u53d1\uff0c\u5728 ML \u884c\u4e1a\u4e2d\u5f88\u53d7\u6b22\u8fce\u3002 \u5b83\u4eec\u63d0\u4f9b\u4e86\u9002\u5408\u81ea\u7136\u8bed\u8a00\u5904\u7406\u3001\u56fe\u50cf\u5d4c\u5165\u5411\u91cf\u3001\u795e\u7ecf\u7f51\u7edc\u548c\u5176\u4ed6 ML \u8981\u7d20\u9700\u8981\u7684\u529f\u80fd\u3002<\/p>\n<p>\u76f8\u540c\u7684\u529f\u80fd\u5728 Go \u4e2d\u4e5f\u53ef\u4ee5\u5b9e\u73b0\uff0c\u5e76\u4e14\uff0c\u5f97\u76ca\u4e8e Go \u76f8\u6bd4\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u7684\u4f18\u52bf\uff08\u4f8b\u5982\u8054\u7f51\u3001\u5e76\u53d1\u548c\u6570\u636e\u5904\u7406\uff09\uff0c\u5b83\u4eec\u53ef\u80fd\u4f1a\u66f4\u5f3a\u5927\u3001\u66f4\u9ad8\u6548\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u521b\u5efa\u8fd9\u4e9b\u529f\u80fd\u76ee\u524d\u53ea\u80fd\u5728 Go \u793e\u533a\u4e2d\u4ea7\u751f\u7528\u5904\uff0c\u56e0\u4e3a Go \u5728 ML \u793e\u533a\u4e2d\u5e76\u4e0d\u50cf Python \u6216 R \u7b49\u8bed\u8a00\u90a3\u6837\u6d41\u884c\u3002\u4e0e\u66f4\u65e9\u7684\u5bf9\u5e94\u529f\u80fd\u76f8\u6bd4\uff0c\u5176\u8d21\u732e\u8005\u6570\u91cf\u4e5f\u5b58\u5728\u5de8\u5927\u5dee\u8ddd\uff0c\u5bfc\u81f4\u5e93\u548c\u5de5\u5177\u7684\u751f\u6001\u7cfb\u7edf\u76f8\u5bf9\u8f83\u5c0f\uff0c\u4f7f\u5f97\u5bfb\u627e\u67d0\u4e9b\u95ee\u9898\u7684\u65e2\u6709\u89e3\u51b3\u65b9\u6848\u66f4\u52a0\u56f0\u96be\u3002<\/p>\n<h2 class=\"wp-block-heading\"><strong>\u60c5\u51b5\u662f\u5426\u6b63\u5728\u53d1\u751f\u53d8\u5316\uff1f<\/strong><\/h2>\n<p>Go \u7684\u4eba\u6c14\u8d8a\u6765\u8d8a\u9ad8\uff0c\u793e\u533a\u4e5f\u5728\u4e0d\u65ad\u53d1\u5c55\u3002 \u76ee\u524d\uff0c\u636e <a href=\"https:\/\/stackshare.io\/golang\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">StackShare<\/a> \u7edf\u8ba1\uff0c\u5df2\u6709 2,751 \u5bb6\u516c\u53f8\u4f7f\u7528 Go\uff0c\u5176\u4e2d\u5305\u62ec Uber\u3001Twitch\u3001Shopify \u548c Slack\u3002 \u6b64\u5916\uff0c\u6839\u636e <a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">2021 Stack Overflow \u5f00\u53d1\u8005\u8c03\u67e5<\/a>\uff0c\u5927\u7ea6 9.55% \u7684\u5f00\u53d1\u8005\u4f7f\u7528 Go\uff0c\u662f\u7b2c 14 \u4f4d\u6700\u6d41\u884c\u7684\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<p>\u867d\u7136\u8fd9\u5bf9 Go \u793e\u533a\u6765\u8bf4\u662f\u4e2a\u597d\u6d88\u606f\uff0c\u4f46\u5b83\u5e76\u6ca1\u6709\u771f\u6b63\u8f6c\u5316\u5230 ML \u9886\u57df\u3002 Go \u6700\u51fa\u540d\u7684\u80fd\u529b\u5728\u4e8e\u521b\u5efa\u53ef\u6269\u7f29\u670d\u52a1\u5668\u548c\u5927\u578b\u8f6f\u4ef6\u7cfb\u7edf\u3001\u7f16\u5199\u5e76\u53d1\u7a0b\u5e8f\u4ee5\u53ca\u542f\u52a8\u5feb\u901f\u8f7b\u91cf\u7ea7\u5fae\u670d\u52a1\u3002 \u5c31\u8fde Go \u5b98\u65b9\u7f51\u7ad9\u4e5f\u6ca1\u6709\u5c06 ML \u5217\u4e3a\u5176\u5178\u578b\u7528\u4f8b\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-358127\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2023\/05\/image-62.png\" alt=\"\" width=\"1566\" height=\"941\"><\/figure>\n<p>\u8fd9\u8868\u660e Go \u76ee\u524d\u6b63\u5728\u8fdc\u79bb ML \u9886\u57df\uff0c\u4e5f\u5728 ML \u793e\u533a\u4e2d\u7f3a\u4e4f\u7acb\u8db3\u70b9\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u672a\u6765\u7528\u4f8b<\/strong><\/h3>\n<p>Go \u5728 ML \u65b9\u9762\u8fd8\u6ca1\u6709\u503c\u5f97\u6ce8\u610f\u7684\u4eae\u70b9\u3002 \u4e0d\u8fc7\uff0c\u8003\u8651\u5230\u8bed\u8a00\u7684\u4f18\u52bf\uff0c\u4e0e\u5176\u5c06 Go \u89c6\u4e3a\u5f00\u53d1 ML \u6a21\u578b\u7684\u8bed\u8a00\uff0c\u4e0d\u5982\u5c06\u5176\u770b\u4f5c\u4e3a ML \u6a21\u578b\u670d\u52a1\u7684\u8bed\u8a00\u3002<\/p>\n<p>Go \u53ef\u7528\u4e8e\u6784\u5efa ML \u6a21\u578b\u670d\u52a1\u5668\uff0c\u5141\u8bb8\u6a21\u578b\u88ab\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u6216\u7cfb\u7edf\u8bbf\u95ee\u548c\u4f7f\u7528\u3002 \u8fd9\u5bf9\u4e8e\u5728\u751f\u4ea7\u4e2d\u90e8\u7f72 ML \u6a21\u578b\u6216\u6784\u5efa\u53ef\u4f9b\u5176\u4ed6\u5f00\u53d1\u8005\u6216\u7528\u6237\u8bbf\u95ee\u7684 ML API \u975e\u5e38\u6709\u7528\u3002 \u5b83\u53ef\u7528\u4e8e\u6784\u5efa ML \u5e94\u7528\uff0c\u4f8b\u5982\u7531 ML \u9a71\u52a8\u7684\u63a8\u8350\u5f15\u64ce\u6216\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5de5\u5177\u3002 \u5b83\u8fd8\u53ef\u7528\u4e8e\u4e3a\u8fd9\u4e9b\u7c7b\u578b\u7684\u5e94\u7528\u6784\u5efa\u540e\u7aef\u57fa\u7840\u67b6\u6784\u6216\u9762\u5411\u7528\u6237\u7684\u754c\u9762\u3002<\/p>\n<p>\u5bf9\u4e8e Go \u793e\u533a\u6765\u8bf4\uff0c\u521b\u5efa\u66f4\u591a\u5de5\u5177\u5305\u548c\u6846\u67b6\u6765\u5b9e\u73b0\u66f4\u5feb\u3001\u66f4\u9ad8\u6548\u7684\u670d\u52a1\u5668\u7aef ML\uff0c\u53ef\u80fd\u4f1a\u5728 ML \u9886\u57df\u4e3a\u66f4\u591a\u5b9e\u9a8c\u6709\u6548\u5f00\u653e\u4ee3\u7801\u5e93\u3002<\/p>\n<h2 class=\"wp-block-heading\"><strong>\u7ed3\u8bba<\/strong><\/h2>\n<p>\u672c\u6587\u63a2\u7d22\u4e86 Go \u5728\u673a\u5668\u5b66\u4e60\u65b9\u9762\u7684\u6f5c\u5728\u4f18\u52bf\u3001\u76ee\u524d\u963b\u788d Go \u5728\u8fd9\u4e00\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u4f7f\u7528\u7684\u6311\u6218\u3001\u6539\u8fdb\u7684\u9014\u5f84\uff0c\u4ee5\u53ca Go \u7684\u6f5c\u5728\u672a\u6765\u7528\u4f8b\u3002<\/p>\n<p><\/p>\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005:<\/p>\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1297,"featured_media":376528,"comment_status":"closed","ping_status":"closed","template":"","categories":[2347],"tags":[],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/375755"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/go"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=375755"}],"version-history":[{"count":7,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/375755\/revisions"}],"predecessor-version":[{"id":376539,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/375755\/revisions\/376539"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/376528"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=375755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=375755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=375755"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=375755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}