-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #591 from EpistasisLab/AliroGPT
Aliro GPT: Merging this PR. Unit tests for scikit-learn failing due to missing SVDRecommender in AliroGPT branch, but it is in the master branch, so tests will run on the master branch.
- Loading branch information
Showing
158 changed files
with
19,197 additions
and
3,635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,5 @@ MANIFEST | |
*.mp4 | ||
package-lock.json | ||
package.json | ||
package-copy.json | ||
package-copy.json | ||
machine/code_runs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Examples of Chat for the Iris_outlier Dataset | ||
|
||
The following table shows some examples of chat for the iris dataset. The dataset is located at 'pmlb_small/dataset/data/AliroGPT. | ||
|
||
| | Chat examples for the iris dataset (Classification) | | ||
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 1 | "Remove any outliers present in each column, except for the column named 'class', using the z-score method. Then, please fill in any missing values within the columns, except for the column named 'class', by using the average method. Finally, save the modified dataset as a new file named 'new_df.tsv'. Please refrain from using the 'scipy' library to import 'stats'." | | ||
| 2 | "Generate a scatter plot with sepal width on the x-axis and petal length on the y-axis. Use color differentiation to show the class column and save the resulting plot as a PNG image file." | | ||
| 3 | "Create a 3D scatter plot with sepal width, petal length, and petal width values assigned to the x, y, and z axes, respectively. Use color to differentiate data points based on the "class" column. Please make sure to save the plot as a PNG file." | | ||
| 4 | "Attempt to read the file 'nonexist.csv' and handle any resulting errors appropriately." | | ||
| 5 | "Please show me box plots for each column in the df dataset, grouped by the "class" variable, excluding the class column. Additionally, please include only the column name on top of each figure without any other text information." | | ||
| 6 | "Please drop the outliers in each column using the z-score method and save the modified dataset as a new file named 'new_df.tsv'." | | ||
|
||
--- | ||
|
||
## Examples of Chat for the Breast Dataset | ||
|
||
The following table shows some examples of chat for the breast dataset. [Click here](https://github.com/EpistasisLab/pmlb/tree/master/datasets/breast) to access the dataset on GitHub. | ||
|
||
| | Chat examples for the breast dataset (Classification) | | ||
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| 1 | "Please use seaborn's kdeplot to show a distribution for each column in the dataframe, excluding the target column, with respect to the target column. Save each distribution plot as a PNG file." | | ||
| 2 | "Please show me a 3D PCA plot for the df dataset with respect to the target column, and save it as a PNG file. Please note that StandardScaler should not be used." | | ||
| 3 | "Please show me box plots for each column in the df dataset, grouped by the target variable, excluding the target column. Additionally, please include only the column name on top of each figure without any other text information." | | ||
| 4 | "Please show me the correlation matrix between each column (excluding the target column) and save it as a PNG. Please use shortened column names, derived from the full column names, to label the axes on the correlation matrix figure." | | ||
|
||
## Examples of Chat for the 1193_BNG_lowbwt_small.tsv Dataset | ||
|
||
The following table shows some examples of chat for the breast dataset. The dataset is located at 'pmlb_small/dataset/data/AliroGPT'. | ||
|
||
| | Chat examples for the 1193_BNG_lowbwt_small (Regression) | | ||
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 1 | "Please show me boxplot for the inv-nodes column and save it as a png file." | | ||
| 2 | "Please drop the rows in the DataFrame which contain outliers in the 'inv-nodes' column, and generate a box plot for the 'inv-nodes' column. The box plot image will be saved as 'inv-nodes-boxplot.png'." | | ||
| 3 | "Please apply PCA to the 'df' dataframe and generate a 3D plot based on the 'target' output. Each scatter point in the 3D plot should be colored according to the relevant 'target' value. After generating the plot, save it as a PNG image and include a color bar. Please let me know if you have any questions." | | ||
| 4 | "Please show me the correlation matrix between each column (excluding the target column) and save it as a PNG. Please use shortened column names, derived from the full column names, to label the axes on the correlation matrix figure." | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
POST http://localhost:5080/chatapi/v1/chats | ||
Content-Type: application/json | ||
|
||
{ | ||
"title" : "Chat with experiment id 2", | ||
"_experiment_id": "63f6e4987c5f93004a3e3ca8", | ||
"_dataset_id": "63f6e4947c5f93004a3e3ca7" | ||
} | ||
|
||
### | ||
|
||
GET http://localhost:5080/chatapi/v1/chats | ||
|
||
### | ||
|
||
GET http://localhost:5080/chatapi/v1/chats/6411113943d572a8f55e5208 | ||
|
||
### | ||
|
||
PATCH http://localhost:5080/chatapi/v1/chats/640bd7290674aa751483658b | ||
Content-Type: application/json | ||
|
||
{ | ||
"title" : "Chat with experiment id", | ||
"_experiment_id": "63f6e4987c5f93004a3e3ca8", | ||
"_dataset_id": "63f6e4947c5f93004a3e3ca7" | ||
} | ||
|
||
### | ||
|
||
DELETE http://localhost:5080/chatapi/v1/chats/640bb89cf6a279429cf4ad7c | ||
|
||
### | ||
POST http://localhost:5080/chatapi/v1/chatlogs | ||
Content-Type: application/json | ||
|
||
{ | ||
"_chat_id" : "6411113943d572a8f55e5208", | ||
"message" : "Hello there from my desk!", | ||
"message_type" : "text", | ||
"who" : "user" | ||
} | ||
|
||
### | ||
|
||
PATCH http://localhost:5080/chatapi/v1/chatlogs/63f6e4947c5f93004a3e3ca7 | ||
Content-Type: application/json | ||
|
||
{ | ||
"message" : "Hello from cyberspace!", | ||
"message_type" : "text", | ||
"who" : "openai" | ||
} | ||
|
||
### | ||
GET http://localhost:5080/chatapi/v1/chats/experiment/63f6e4987c5f93004a3e3ca8 | ||
|
||
### | ||
|
||
GET http://localhost:5080/chatapi/v1/chats/dataset/63f6e4947c5f93004a3e3ca7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
sepal-length,sepal-width,petal-length,petal-width,class | ||
6.7,3.0,5.2,2.3,2 | ||
6.0,2.2,5.0,1.5,2 | ||
6.2,2.8,4.8,1.8,2 | ||
7.7,3.8,6.7,2.2,2 | ||
7.2,3.0,5.8,1.6,2 | ||
5.5,2.4,3.8,1.1,1 | ||
6.0,2.7,5.1,1.6,1 | ||
5.5,2.5,4.0,1.3,1 | ||
5.6,2.9,3.6,1.3,1 | ||
5.7,2.9,4.2,1.3,1 | ||
5.0,3.2,1.2,0.2,0 | ||
4.9,3.1,1.5,0.1,0 | ||
5.3,3.7,1.5,0.2,0 | ||
4.8,3.1,1.6,0.2,0 | ||
5.0,3.3,1.4,0.2,0 | ||
6.3,3.4,5.6,2.4,2 | ||
7.1,3.0,5.9,2.1,2 | ||
6.3,2.8,5.1,1.5,2 | ||
6.3,2.9,5.6,1.8,2 | ||
5.8,2.7,5.1,1.9,2 | ||
5.2,2.7,3.9,1.4,1 | ||
5.6,3.0,4.1,1.3,1 | ||
6.9,3.1,4.9,1.5,1 | ||
6.2,2.9,4.3,1.3,1 | ||
6.5,2.8,4.6,1.5,1 | ||
5.0,3.0,1.6,0.2,0 | ||
5.5,3.5,1.3,0.2,0 | ||
5.1,3.5,1.4,0.3,0 | ||
5.7,3.8,1.7,0.3,0 | ||
5.5,4.2,1.4,0.2,0 | ||
6.7,3.1,5.6,2.4,2 | ||
5.8,2.8,5.1,2.4,2 | ||
6.4,3.1,5.5,1.8,2 | ||
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9,2.4,3.3,1.0,1 | ||
5.1,2.5,3.0,1.1,1 | ||
6.4,3.2,4.5,1.5,1 | ||
5.7,3.0,4.2,1.2,1 | ||
4.3,3.0,1.1,0.1,0 | ||
5.1,3.7,1.5,0.4,0 | ||
4.8,3.4,1.6,0.2,0 | ||
4.6,3.2,1.4,0.2,0 | ||
4.8,3.0,1.4,0.1,0 | ||
6.9,3.1,5.4,2.1,2 | ||
7.2,3.2,6.0,1.8,2 | ||
7.7,3.0,6.1,2.3,2 | ||
7.7,2.8,6.7,2.0,2 | ||
6.5,3.0,5.2,2.0,2 | ||
5.5,2.4,3.7,1.0,1 | ||
5.4,3.0,4.5,1.5,1 | ||
6.8,2.8,4.8,1.4,1 | ||
6.1,2.9,4.7,1.4,1 | ||
6.7,3.0,5.0,1.7,1 | ||
5.0,3.5,1.6,0.6,0 | ||
5.4,3.9,1.7,0.4,0 | ||
5.1,3.4,1.5,0.2,0 | ||
5.0,3.6,1.4,0.2,0 | ||
5.0,3.4,1.6,0.4,0 |
3 changes: 0 additions & 3 deletions
3
data/recommenders/scikitlearn/SVDRecommender_classifier_accuracy_pmlb.pkl.gz
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
data/recommenders/scikitlearn/SVDRecommender_regressor_nmse_pmlb.pkl.gz
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.