@@ -2,7 +2,7 @@ system-prompt: |
22 You are an assistant to take a data science computation dataflow diagram
33 and generate code.
44
5- You may only import matplotlib, seaborn, numpy, sklearn, and pandas.
5+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
66
77semantic-diff : |
88 Here are the old and new values for parts of a computation step:
@@ -523,113 +523,6 @@ algorithm: |
523523
524524
525525
526- # assess: |
527- # Here are the preconditions for a set of variables, and a post-condition:
528- # ```
529- # {requirements}
530- # ```
531- # And an algorithm:
532- # ```
533- # {algorithm}
534- # ```
535- # Assume an expert data scientist will write code for this algorithm using Python and the standard
536- # numpy, pandas, matplotlib, seaborn, scipy, and sklearn libraries.
537- # The expert has no other information about the function but can make reasonable choices about
538- # how to implement parts of it.
539-
540- # I want you to assess the algorithm. Here are the criteria:
541- # * Are the postconditions unambiguous in their meaning?
542- # * Does the algorithm meet the post-conditions if the preconditions are all satisfied?
543- # * Is it a meaningful algorithm?
544- # * Are the results easy to interpret?
545-
546- # Answer, `Good`, `Bad`, or `More Information Needed`.
547-
548- # If your answer is `Bad`, provide a reason why the algorithm does not meet the post-condition.
549-
550- # If your answer is `More Information Needed`, provide the most important question that would help you make a decision:
551- # * If additional data is needed to perform the computation, ask for that data.
552- # * If more information about the algorithm is needed, ask the most important question related to that algorithm.
553-
554-
555- # return-type: |
556- # Here are the pre and post conditions for a function
557- # ```
558- # {requirements}
559- # ```
560- # Create a return type for the function that meets the postconditions.
561-
562- # The return type's specification
563- # should be detailed enough that users of the function can understand what
564- # the function returns. Do not include a specificaiton if the return
565- # type is None.
566-
567- # Assume the client has no other information about the function.
568-
569- # If this function returns data from a file, use the column labels
570- # and types found in that file.
571-
572- # The type should reflect what is described in the specification.
573- # The return type for functions generating plots should be None.
574-
575- # return-description: |
576- # Here are the pre and post conditions for a function
577- # ```
578- # {requirements}
579- # ```
580- # Give a one sentence description of the value returned by
581- # this function.
582-
583- # description: |
584- # Here are the preconditions for a set of variables used by
585- # a computation:
586- # ```
587- # {preconditions}
588- # ```
589- # Here are the requirements for the return value `{function_return_var}`:
590- # ```
591- # {requirements}
592- # ```
593-
594- # Create a prose description for this step of the computation.
595-
596- # parameters: |
597- # Identify the function_return_vars from all direct and indirect
598- # predecessors that will be necessary to compute the results of this stage.
599-
600- # Your answer should be a list of variables drawn from this list:
601- # ```
602- # {result_vars}
603- # ```
604-
605-
606- # signatures: |
607- # Create a Python function signature for this step of the computation.
608-
609- # The signature should include the function name, the parameters, and the return
610- # type for this step.
611-
612- # The function name should capture the intent of this step computation.
613-
614- # There is one parameter for each predecessor node. For this node,
615- # there are `{n_predecessors}` predecessors. They are:
616- # ```
617- # {predecessors}
618- # ```
619-
620- # The parameter types should match the return values for
621- # the predecessors' functions.
622-
623- # The return type should be described with its type and any
624- # requirements for the value. If a stage has no outgoing edges.
625-
626- # Assume that the following modules have been imported:
627- # ```
628- # import pandas as pd
629- # import numpy as np
630- # import seaborn as sns
631- # import matplotlib.pyplot as plt
632- # ```
633526
634527compile : |
635528 Write the code for this step as a single function.
@@ -649,7 +542,7 @@ compile: |
649542 * Be optimized for readability, clarity, and simplicity.
650543 * Do not include pydoc strings.
651544
652- You may only import matplotlib, seaborn, numpy, sklearn, scipy, and pandas.
545+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
653546
654547 Import any classes referenced in the return type.
655548
@@ -1046,7 +939,7 @@ ama_node_editor: |
1046939 * Be optimized for readability, clarity, and simplicity.
1047940 * Do not include pydoc strings.
1048941
1049- You may only import matplotlib, seaborn, numpy, sklearn, scipy, and pandas.
942+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
1050943
1051944 Import any classes referenced in the return type.
1052945
@@ -1207,8 +1100,8 @@ repair-syntax: |
12071100 * Have no side effects.
12081101 * Be optimized for readability, clarity, and simplicity.
12091102 * Do not include pydoc strings.
1210-
1211- You may only import matplotlib, seaborn, numpy, sklearn, scipy, and pandas.
1103+
1104+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
12121105
12131106 Import any classes referenced in the return type.
12141107
@@ -1280,7 +1173,7 @@ repair-node-run: |
12801173 * Be optimized for readability, clarity, and simplicity.
12811174 * Do not include pydoc strings.
12821175
1283- You may only import matplotlib, seaborn, numpy, sklearn, scipy, and pandas.
1176+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
12841177
12851178 Import any classes referenced in the return type.
12861179
@@ -1681,7 +1574,8 @@ full-compile-code: |
16811574 * Have no side effects.
16821575 * Be optimized for readability, clarity, and simplicity.
16831576
1684- You may only import matplotlib, seaborn, numpy, sklearn, and pandas. Uses seaborn for all plots, with
1577+ You may only import matplotlib, seaborn, numpy, sklearn, statsmodels, scipy, and pandas.
1578+ Use seaborn for all plots, with
16851579 no changes to the base style. Do not call `plt.close()` and *do not* save them to disk.
16861580
16871581 Do not include other functions.
0 commit comments