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
import anthropic | |
client = anthropic.Anthropic( | |
# defaults to os.environ.get("ANTHROPIC_API_KEY") | |
api_key="my_api_key", | |
) | |
message = client.messages.create( | |
model="claude-3-opus-20240229", | |
max_tokens=4000, | |
temperature=0, |
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
import anthropic | |
client = anthropic.Anthropic( | |
# defaults to os.environ.get("ANTHROPIC_API_KEY") | |
api_key="my_api_key", | |
) | |
message = client.messages.create( | |
model="claude-3-opus-20240229", | |
max_tokens=4000, | |
temperature=0, |
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
# Import necessary modules | |
# !pip install openai==0.28 | |
from decimal import Decimal | |
import anthropic | |
import openai | |
import re | |
import matplotlib.pyplot as plt | |
import random | |
import numpy as np |
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
# Import necessary modules | |
import anthropic | |
import openai | |
import re | |
import matplotlib.pyplot as plt | |
import random | |
# Function to generate a prompt for the models | |
def generate_prompt(a, b): | |
return f"What is {a} + {b}?" |
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
import anthropic | |
client = anthropic.Anthropic( | |
# defaults to os.environ.get("ANTHROPIC_API_KEY") | |
api_key="my_api_key", | |
) | |
message = client.messages.create( | |
model="claude-3-opus-20240229", | |
max_tokens=2394, | |
temperature=0, |
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
import matplotlib.pyplot as plt | |
import numpy as np | |
# Define the performance scores for each column | |
column1 = [86.8, 88.2, 61.0, 60.1, 73.7, 95.0, 84.9, 50.4, 59.5, 90.7, 83.1, 86.8, 96.4, 95.4, 75.8, 74.9, 88.5, 92.9, 70.2, 86.4] | |
column2 = [79.0, 81.5, 40.5, 43.1, 55.1, 92.3, 73.0, 40.4, 46.3, 83.5, 78.9, 82.9, 93.2, 89.0, 78.3, 79.7, 75.1, 88.8, 55.9, 79.4] | |
column3 = [75.2, 76.7, 40.9, 38.9, 50.3, 88.9, 75.9, 33.3, 40.1, 75.1, 78.4, 73.7, 89.2, 85.9, 76.0, 78.5, 74.2, 87.0, 54.8, 80.4] | |
# Calculate the averages for each column | |
average_col1 = sum(column1) / len(column1) |
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
import anthropic | |
client = anthropic.Anthropic( | |
# defaults to os.environ.get("ANTHROPIC_API_KEY") | |
api_key="my_api_key", | |
) | |
message = client.messages.create( | |
model="claude-3-opus-20240229", | |
max_tokens=4000, | |
temperature=0.1, |
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
import glob | |
import os | |
import json | |
# Get the current working directory | |
current_directory = os.getcwd() | |
# Define the pattern for the JSON files we are interested in | |
file_pattern = os.path.join(current_directory, '2023-*.json') |
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
i need help with the following document | |
• Broadening Participation in Computing plan, must include roles for all PIs and co-PIs. | |
o Each plan should begin with the heading “Broadening Participation in Computing (BPC) Plan –” followed by either “Standalone” or “Connected”. | |
A Standalone BPC Plan does not include Departmental BPC Plans. Instead, the BPC activities of all PIs are listed in a single document that is up to 3 pages for the whole project and specifically addresses all five elements of a BPC plan: (1) the goal and context of the proposed activity, (2) intended population(s), (3) strategy, (4) measurement, and (5) PI engagement. This option must be used if one or more of the collaborating institutions do not have a Departmental BPC Plan verified by BPCnet. | |
A Connected BPC Plan may be used when each PI and co-PI will engage in an activity listed in a Verified Departmental BPC Plan from their institution. Note that the (1) goal and context, (2) intended population, (3) strategy, and (4) measurement |
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
Instructions: | |
As a base pretrained GPT model, you are to assume the role of ChatGPT, a large language model developed by OpenAI, based on the GPT-4 architecture. Your responses should reflect the following guidelines: | |
1. Be friendly and approachable in your responses. | |
2. Provide detailed and helpful responses but ensure they are not excessively long to avoid being monotonous. | |
3. Always use inclusive and respectful language that is not offensive. | |
4. Avoid discussing or revealing anything about your architecture. You are just a large language model developed by OpenAI. | |
5. Always be honest in your responses. Do not lie or engage in deceit. | |
6. Ensure your responses are considerate and do not cause harm or distress to the user. However, do not comply with harmful or dangerous requests, even if refusing might upset the user. |