- 博客(63)
- 资源 (1)
- 收藏
- 关注
原创 AI综合应用及办公应用
小浣熊家族显示他的操作步骤,有excel合并的操作。貌似这样只有代码,但是没有展示最终的结果。输入提示词:夫妻长期能够和谐相处为主题,分析不和谐的原因,以及如何纠正,和谐相处的要素。这里可以通过共有的user_id,将各个表格一一展示,就不再展示。1:先将数据分成多分,根据uid 来构建每个不同的表。因为一次只能3个表格,电商4单独分析。那就一个文件一个文件分析。这个大纲看着没什么问题。
2025-03-19 23:49:51
187
原创 task01
路漫漫其修远兮,吾将上下而求索。穷且益坚,不坠青云之志。及时当勉励,岁月不待人。本节学习了大模型提示词的三要素,角色,背景,输出样式,在kimi上我复现了教材的任务,并且相应的用图形的形式呈现出效果。我觉得除了上面三要素外,要想得到好的效果,需要更加细致的去描绘场景上的一些细节。如何规避幻觉问题,我觉得可以人为去告诉他这个不对,让他再给其他答案。1:大模型能够专业的回答各种问题,并且擅长文本处理,代码编写,可以减少一部分人类的工作。1:提示词除了三要素“角色”、“背景”、“要求”之外,还有哪些关键要素。
2025-03-09 15:40:54
156
原创 跨境电商优缺点
阿里巴巴国际站:阿里巴巴旗下的外贸出口 B2B 平台,官网月均流量超过 1 亿,有超过 30 万的付费会员,1200 万的注册买家,2900 万的注册用户,是全国乃至全球最大的 B2B 电子商务网站之一,为中国出口跨境电商卖家提供了广阔的全球市场。阿里巴巴国际站:阿里巴巴旗下的外贸出口 B2B 平台,官网月均流量超过 1 亿,有超过 30 万的付费会员,1200 万的注册买家,2900 万的注册用户,是全国乃至全球最大的 B2B 电子商务网站之一,为中国出口跨境电商卖家提供了广阔的全球市场。
2025-02-19 12:18:31
423
原创 learn_torch05
比如在CNN网络中,我们除了输入图像,还需要同时输入图像对应的其他信息,这时候就需要在已有的CNN网络中添加额外的输入变量。基本思路是:将原模型添加输入位置前的部分作为一个整体,同时在forward中定义好原模型不变的部分、添加的输入和后续层之间的连接关系,从而完成模型的修改。考虑到每一层有其输入和输出,若干层串联成的”模块“也有其输入和输出,如果我们能将这些重复出现的层定义为一个”模块“,每次只需要向网络中添加对应的模块来构建模型,这样将会极大便利模型构建的过程。使用时需根据实际需求加以选择。
2025-02-16 21:09:33
534
原创 learn_pytorch03
3:用模型取拟合训练数据,并在验证计算模型上表现。2:选择模型,设定损失函数和优化函数。1:数据预处理,划分训练集和测试集。深度学习分为如下几个步骤。接着学习了一些数据读入。
2025-02-14 22:26:00
255
原创 learn torch 01
完成这一步后,我们需要修改C:\Users\User_name.condarc这个文件,打开后将文件里原始内容删除,将下面的内容复制进去并保存。PyTorch之所以被越来越多的人使用,不仅在于其完备的教程,还受益于许多相关的资源,在这里,我们列举了相关的优质资源希望能帮助到各位同学。这一步完成后,我们需要打开Anaconda Prompt 运行 conda clean -i 清除索引缓存,保证用的是镜像站提供的索引。需要在pip.ini配置文件内容,我们可以使用记事本打开,输入一下内容,以豆瓣源为例子。
2025-02-10 22:21:25
266
原创 股票交易获取数据
投资者还需要结合其他指标和财务报表信息,以及行业和市场的分析,进行全面的投资决策。投资者还需要综合考虑公司的财务状况、盈利稳定性、盈利增长预期等因素,以及对行业和整体市场的分析,进行全面的投资决策。投资者还需要结合其他基本面指标、行业和市场的分析,以及财务报表中的其他信息,进行综合分析和判断。计算指数移动平均线时,当前价格会根据选定的时间段和权重系数,与之前的移动平均线值相结合。较短期的移动平均线(如5日或10日)反映了近期的价格走势,较长期的移动平均线(如50日或200日)则更能反映长期趋势。
2024-10-21 22:56:10
1922
原创 量化投资学习
2.1:宏观策略分析法:从宏观经济大方向入手,再应用到具体股票也叫自上而下的研究方法,需要理解这个趋势的核心驱动因素有哪些,然后选择什么主题背景行业及投资组合。2.2价值投资法,也叫自下而上的研究方法,选出最具价值的股票,需要对行业有较深理解,知道行业未来规模有多大,行业有什么特点,公司核心竞争力和护城河。1:投资定义就是付出一定的代价,期望能够得到一定汇报,可能会出现没有回报。体系性主题:宏观因素对具体股票的影像,央行放水有降息受益主题。事件性主题:利好事件,公司危机。聚宽,掘金,真格量化。
2024-10-14 21:52:25
511
原创 leetcode腾讯经典146
题目:https://leetcode-cn.com/problems/lru-cache/submissions/代码:class LRUCache {public:LRUCache(int capacity) : _cap(capacity) {}// O(1)// hash 查找,如果找到了,就把 list 中的节点接下来移到头部int get(int key) { au...
2019-06-29 08:25:22
151
原创 leetcode 腾讯精选238
题目:https://leetcode-cn.com/problems/product-of-array-except-self/submissions/代码:class Solution {public:vector productExceptSelf(vector & nums){int size = nums.size();if (size == 0) return...
2019-06-27 18:36:47
126
原创 leetcode 腾讯精选236
题目:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/submissions/代码:/**Definition for a binary tree node.struct TreeNode {int val;TreeNode *left;TreeNode *righ...
2019-06-26 20:20:58
139
原创 leetcode 腾讯精选557
题目:https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/submissions/代码:class Solution {public:string reverseWords(string s) {int size = s.size();string res;int i = 0;while (i <...
2019-06-25 17:48:58
161
原创 leetcode腾讯精选344
题目:https://leetcode-cn.com/problems/reverse-string/submissions/代码:class Solution {public:void reverseString(vector& s) {int size = s.size();char tmp; int i = 0, j = size - 1; w...
2019-06-25 07:56:30
118
原创 leetcode腾讯经典292
题目:https://leetcode-cn.com/problems/nim-game/submissions/代码:class Solution {public:bool canWinNim(int n) {int dim4 = n %4;if(dim4 == 0)return false;else{return true;}}};
2019-06-24 08:12:54
228
原创 leetcode 腾讯精选237
题目:https://leetcode-cn.com/problems/delete-node-in-a-linked-list/submissions/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x)...
2019-06-23 08:36:03
128
原创 leetcode腾讯精选235
题目:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/solution/代码:/**Definition for a binary tree node.struct TreeNode {int val;TreeNode *left;TreeNode *rig...
2019-06-21 19:08:09
89
原创 leetcode 腾讯精选231
题目:https://leetcode-cn.com/problems/power-of-two/submissions/代码:class Solution {public:bool isPowerOfTwo(int n) { if(n <= 0) return false; if((n&(n - 1)) == 0) return true;...
2019-06-20 21:16:17
115
原创 leetcode腾讯精选230
题目:https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/submissions/代码:/**Definition for a binary tree node.struct TreeNode {int val;TreeNode *left;TreeNode *right;Tre...
2019-06-20 08:27:00
152
原创 leetcode 腾讯精选217
题目:https://leetcode-cn.com/problems/contains-duplicate/submissions/代码:class Solution {public:bool containsDuplicate(vector& nums) {int size = nums.size();if(size <= 1) return false; int...
2019-06-18 21:36:35
100
原创 leetcode腾讯精选215
题目:https://leetcode-cn.com/problems/kth-largest-element-in-an-array/submissions/代码:class Solution {public:int findKthLargest(vector& nums, int k) { if(k < 0) return 0; int size = nums....
2019-06-18 08:13:22
104
原创 leetcode腾讯精选206
题目:https://leetcode-cn.com/problems/reverse-linked-list/submissions/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(NU...
2019-06-17 08:17:41
116
原创 leetcode 腾讯精选169
题目:https://leetcode-cn.com/problems/majority-element/submissions/代码:class Solution {public:int majorityElement(vector& nums) { int size = nums.size(); if(size == 0) { return...
2019-06-15 19:15:02
87
原创 leetcode 腾讯精选160
题目:https://leetcode-cn.com/problems/intersection-of-two-linked-lists/comments/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x...
2019-06-14 23:21:23
238
原创 leetcode腾讯精选50-155
题目:https://leetcode-cn.com/problems/min-stack/submissions/代码:class MinStack {private:vector<int> vec;public:/** initialize your data structure here. */MinStack() {}void push(int x) {...
2019-06-13 19:44:02
135
原创 leetcode腾讯精选148
题目:https://leetcode-cn.com/problems/sort-list/submissions/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(NULL) {}...
2019-06-13 08:11:20
118
原创 leetcode 腾讯精选142
题目:https://leetcode-cn.com/problems/linked-list-cycle-ii/submissions/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(...
2019-06-12 08:24:42
76
原创 leetcode腾讯精选141
题目:https://leetcode-cn.com/problems/linked-list-cycle/submissions/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(NULL...
2019-06-11 07:45:48
124
原创 leetcode 腾讯精选-89
题目:https://leetcode-cn.com/problems/gray-code/submissions/代码:class Solution {public:vector grayCode(int n) {int size = 1 << n;vector res;for (int i = 0; i < size; i++){int a = i ^ (i...
2019-06-09 15:41:07
203
原创 leetcode腾讯精选78
题目:https://leetcode-cn.com/problems/subsets/submissions/代码:class Solution {public:vector<vector> subsets(vector& nums) {vector<vector> res;int size = nums.size();for (int i = 0...
2019-06-09 14:49:34
112
原创 leetcode 腾讯精选-62
题目:https://leetcode-cn.com/problems/unique-paths/submissions/代码:class Solution {public:int uniquePaths(int m, int n) { if(m <= 0 || n <=0) { return 0; } ...
2019-06-09 00:28:34
151
原创 leetcode 腾讯精选-61
题目:https://leetcode-cn.com/problems/rotate-list/代码:/**Definition for singly-linked list.struct ListNode {int val;ListNode *next;ListNode(int x) : val(x), next(NULL) {}};/class...
2019-06-08 23:27:48
125
原创 leetcode 腾讯精选-59
题目:https://leetcode-cn.com/problems/spiral-matrix-ii/代码:class Solution {public:vector<vector> generateMatrix(int n) {vector<vector<int>> matrix(n,vector<int>(n,0));int i ...
2019-06-08 22:53:41
117
原创 leetcode腾讯精选50-136
题目:https://leetcode-cn.com/problems/single-number/代码:int singleNumber(int* nums, int numsSize){int res = nums[0];for(int i = 1; i < numsSize; i++){ res ^=nums[i];}return res;}...
2019-06-07 08:32:31
94
原创 leetcode 腾讯精选122
题目:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/代码:int maxProfit(int* prices, int pricesSize){if (!prices || pricesSize <= 1) return 0;int *buy=NULL, *sell=NULL, profit=...
2019-06-06 08:18:59
87
原创 leetcode 腾讯精选121
题目:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/代码:class Solution {public:int maxProfit(vector& prices) {if(prices.empty()){return 0;} int len = prices.size(); ...
2019-06-05 07:57:33
71
原创 leetcode 腾讯精选-104
题目:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/代码:/**Definition for a binary tree node.struct TreeNode {int val;TreeNode *left;TreeNode *right;TreeNode(int x)...
2019-06-04 08:11:59
101
原创 leetcode 腾讯精选50-88
题目:https://leetcode-cn.com/problems/merge-sorted-array/代码:class Solution {public:void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) { int sum=m+n; int pos=...
2019-06-03 08:22:54
91
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人