日常数据科学任务的 20 个有效Prompts

1. 数据清洗与预处理

Data Cleaning and Preprocessing:

Act as a data analyst and identify missing values, outliers, and duplicate entries in the dataset [dataset name]. Suggest strategies for handling these issues to prepare the data for analysis.

扮演数据分析师,识别数据集 [数据集名称] 中的缺失值、异常值和重复条目。提出处理这些问题的策略,为分析数据做好准备。

2. 探索性数据分析 (EDA)

Exploratory Data Analysis (EDA):

Act as a data scientist exploring a new dataset. Summarize the dataset [dataset name], including its size, structure, and the distribution of key variables. Highlight any interesting correlations or patterns observed.

扮演数据科学家探索新数据集。总结数据集 [数据集名称],包括其规模、结构和关键变量的分布。强调观察到的任何有趣的相关性或模式。

3. 特征工程

Feature Engineering:

Act as a machine learning engineer and create new features for the dataset [dataset name] that could improve the performance of a predictive model. Describe the rationale behind each new feature.

扮演机器学习工程师,为数据集[数据集名称]创建可提高预测模型性能的新特征。描述每个新特征背后的原理。

4. 数据可视化

Data Visualization:

Act as a data visualization expert and design visualizations that effectively communicate the findings of the exploratory data analysis of [dataset name], including histograms, scatter plots, and heatmaps.

扮演数据可视化专家,设计能有效传达[数据集名称]探索性数据分析结果的可视化方法,包括直方图、散点图和热图等。

5. 统计分析

Statistical Analysis:

Act as a statistician analyzing the dataset [dataset name]. Perform hypothesis testing to determine if there are statistically significant differences between groups [group A] and [group B] with respect to [variable].

以统计学家的身份分析数据集[数据集名称]。进行假设检验,以确定[A 组]和[B 组]在[变量]方面是否存在显著的统计学差异。

6. 模型选择

Model Selection:

Act as a data science consultant tasked with choosing the best machine learning model for predicting [target variable] based on the features in [dataset name]. Discuss the pros and cons of at least three models.

担任数据科学顾问,根据[数据集名称]中的特征选择预测[目标变量]的最佳机器学习模型。讨论至少三种模型的优缺点。

7. 模型训练

Model Training:

Act as a machine learning specialist training a model on [dataset name]. Outline the steps for preprocessing data, splitting it into training and test sets, and training a [model type] model.

扮演机器学习专家,在[数据集名称]上训练模型。概述预处理数据、将数据分成训练集和测试集以及训练[模型类型]模型的步骤。

8. 模型评估

Model Evaluation:

Act as a machine learning evaluator assessing the performance of a [model type] on the test set of [dataset name]. Calculate accuracy, precision, recall, and F1 score, and interpret these metrics.

担任机器学习评估员,评估[模型类型]在[数据集名称]测试集上的性能。计算准确率、精确率、召回率和 F1 分数,并解释这些指标。

9. 超参数调整

Hyperparameter Tuning:

Act as a machine learning engineer optimizing a [model type] for dataset [dataset name]. Describe a strategy for hyperparameter tuning, including the selection of parameters to adjust and the tuning method.

扮演机器学习工程师,针对数据集[数据集名称]优化[模型类型]。描述超参数调整策略,包括选择要调整的参数和调整方法。

10. 交叉验证

Cross-Validation:

Act as a data analyst performing cross-validation on [dataset name] using a [model type]. Explain the cross-validation process and how it helps in assessing the model’s generalizability.

扮演数据分析师,使用[模型类型]对[数据集名称]进行交叉验证。解释交叉验证过程以及它如何有助于评估模型的普适性。

11. 预测分析

Predictive Analysis:

Act as a predictive analyst making forecasts using the trained [model type] on dataset [dataset name]. Provide predictions for the next [time period] and discuss the confidence in these predictions.

扮演预测分析师,使用训练有素的[模型类型]对数据集[数据集名称]进行预测。提供下一个[时间段]的预测,并讨论对这些预测的置信度。

12. 文本分析

Text Analysis:

Act as a NLP specialist analyzing text data in [dataset name]. Conduct sentiment analysis, topic modeling, and keyword extraction to uncover insights from text data.

担任 NLP 专家,分析[数据集名称]中的文本数据。进行情感分析、主题建模和关键字提取,从文本数据中挖掘洞察力。

13. 时间序列分析

Time Series Analysis:

Act as a time series analyst working with dataset [dataset name]. Apply ARIMA/SARIMA models to forecast [target variable] for the next [time period] and discuss the model’s assumptions and confidence intervals.

担任时间序列分析员,处理数据集[数据集名称]。应用 ARIMA/SARIMA 模型预测下一个[时间段]的[目标变量],并讨论模型的假设和置信区间。

14. 异常检测

Anomaly Detection:

Act as a data scientist, identifying anomalies in [dataset name]. Use [specified method] to detect outliers and potential anomalies in the dataset and suggest possible explanations for these anomalies.

扮演数据科学家,识别[数据集名称]中的异常情况。使用[指定方法]检测数据集中的异常值和潜在异常,并对这些异常提出可能的解释。

15. 聚类分析

Cluster Analysis:

Act as a machine learning engineer performing cluster analysis on dataset [dataset name]. Identify natural groupings in the data using the [specified clustering technique] and interpret the characteristics of each cluster.

扮演机器学习工程师,对数据集[数据集名称]进行聚类分析。使用[指定聚类技术]识别数据中的自然分组,并解释每个聚类的特征。

16. 降维

Dimensionality Reduction:

Act as a data analyst applying dimensionality reduction to dataset [dataset name] using PCA/TSNE. Explain the process and how it aids in visualization and model performance.

担任数据分析师,使用 PCA/TSNE 对数据集[数据集名称]进行降维处理。解释这一过程以及它如何有助于可视化和模型性能。

17. 数据整合

Data Integration:

Act as a data engineer, integrating multiple datasets for a comprehensive analysis. Describe the process of combining [dataset A] and [dataset B], including handling inconsistencies and ensuring data quality.

扮演数据工程师,整合多个数据集进行综合分析。描述[数据集 A]和[数据集 B]的组合过程,包括处理不一致之处和确保数据质量。

18. 数据管道自动化

Automating Data Pipelines:

Act as a data engineer, designing an automated pipeline for data processing and analysis of [dataset name]. Outline the components of the pipeline, including data ingestion, cleaning, transformation, and storage.

扮演数据工程师,为[数据集名称]的数据处理和分析设计自动化管道。概述管道的组成部分,包括数据获取、清理、转换和存储。

19. 部署机器学习模型

Deploying Machine Learning Models:

Act as a machine learning engineer deploying a [model type] model trained on [dataset name]. Describe the steps for deployment, including model serialization, creating a prediction API, and monitoring model performance.

扮演机器学习工程师,部署在[数据集名称]上训练的[模型类型]模型。描述部署步骤,包括模型序列化、创建预测 API 和监控模型性能。

20. 数据科学中的伦理问题

Ethical Considerations in Data Science:

Act as an ethicist, addressing ethical considerations in data science projects. Discuss how to handle sensitive data in [dataset name], including privacy, bias, and fairness, and suggest best practices for ethical data science.

扮演伦理学家,解决数据科学项目中的伦理问题。讨论如何处理[数据集名称]中的敏感数据,包括隐私、偏见和公平性,并提出符合伦理的数据科学最佳实践。

扩展阅读

  1. LangGPT 社区
  2. 用于自定义指令的 50+ 个 ChatGPT 角色
  3. 用 ChatGPT 学习数据科学
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 221,198评论 6 514
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 94,334评论 3 398
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 167,643评论 0 360
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,495评论 1 296
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,502评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 52,156评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,743评论 3 421
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,659评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,200评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,282评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,424评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 36,107评论 5 349
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,789评论 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,264评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,390评论 1 271
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,798评论 3 376
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,435评论 2 359

推荐阅读更多精彩内容