Closed eZEsportler closed 1 year ago
I don’t see an error here
On Mon, Apr 24, 2023 at 9:35 AM eZEsportler @.***> wrote:
Hi, I cant install open ai and cant set an api its showing me this:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Requirement already satisfied: openai in /usr/local/lib/python3.9/dist-packages (0.27.4) Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from openai) (3.8.4) Requirement already satisfied: requests>=2.20 in /usr/local/lib/python3.9/dist-packages (from openai) (2.28.2) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from openai) (4.64.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (3.4) Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.9.1) Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (23.1.0) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (6.0.4) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.3) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (4.0.2) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.1)
— Reply to this email directly, view it on GitHub https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Best, Chris
I don’t see an error here On Mon, Apr 24, 2023 at 9:35 AM eZEsportler @.> wrote: Hi, I cant install open ai and cant set an api its showing me this: Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Requirement already satisfied: openai in /usr/local/lib/python3.9/dist-packages (0.27.4) Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from openai) (3.8.4) Requirement already satisfied: requests>=2.20 in /usr/local/lib/python3.9/dist-packages (from openai) (2.28.2) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from openai) (4.64.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (3.4) Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.9.1) Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (23.1.0) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (6.0.4) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.3) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (4.0.2) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.1) — Reply to this email directly, view it on GitHub <#215>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Best, Chris
Thanks Chris, but do you know how I can set the api?
I’m not sure what you mean by setting up the api, what are you looking to do?
On Mon, Apr 24, 2023 at 11:01 AM eZEsportler @.***> wrote:
I don’t see an error here On Mon, Apr 24, 2023 at 9:35 AM eZEsportler @.> wrote: Hi, I cant install open ai and cant set an api its showing me this: Looking in indexes: https://pypi.org/simple https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ https://us-python.pkg.dev/colab-wheels/public/simple/ Requirement already satisfied: openai in /usr/local/lib/python3.9/dist-packages (0.27.4) Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from openai) (3.8.4) Requirement already satisfied: requests>=2.20 in /usr/local/lib/python3.9/dist-packages (from openai) (2.28.2) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from openai) (4.64.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (3.4) Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.9.1) Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (23.1.0) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (6.0.4) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.3) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (4.0.2) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.1) — Reply to this email directly, view it on GitHub <#215 https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Best, Chris
Thanks Chris, but do you know how I can set the api?
— Reply to this email directly, view it on GitHub https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215#issuecomment-1520601420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W5WGWX4D4O7YSH25XDXC25XDANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you commented.Message ID: @.*** .com>
-- Best, Chris
I’m not sure what you mean by setting up the api, what are you looking to do? On Mon, Apr 24, 2023 at 11:01 AM eZEsportler @.> wrote: I don’t see an error here On Mon, Apr 24, 2023 at 9:35 AM eZEsportler @.> wrote: Hi, I cant install open ai and cant set an api its showing me this: Looking in indexes: https://pypi.org/simple https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ https://us-python.pkg.dev/colab-wheels/public/simple/ Requirement already satisfied: openai in /usr/local/lib/python3.9/dist-packages (0.27.4) Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from openai) (3.8.4) Requirement already satisfied: requests>=2.20 in /usr/local/lib/python3.9/dist-packages (from openai) (2.28.2) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from openai) (4.64.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (3.4) Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.9.1) Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (23.1.0) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (6.0.4) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.3) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (4.0.2) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.1) — Reply to this email directly, view it on GitHub <#215 <#215>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ https://github.com/notifications/unsubscribe-auth/AAVP5W3DQEVLXN7MPU7M3CTXC2TUNANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Best, Chris Thanks Chris, but do you know how I can set the api? — Reply to this email directly, view it on GitHub <#215 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W5WGWX4D4O7YSH25XDXC25XDANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you commented.Message ID: @. .com> -- Best, Chris
I am sorry, i am very new to this. I want to get to the following picture
Hey @eZEsportler,
Is this screenshot from the YouTube Torben Platzer? you want to get the results as a text right? here ist my code. It works. You have to copy your API key from OpenAi. It is important that the code is between this signs: " API kEY " Have FUN
---------------Code----------------------------------------------------------------------------
! pip install openai import openai
openai.api_key = "*_Enter here your API Key from OpenAI_*"
"""
response = openai.Completion.create( engine="text-davinci-002", prompt=(f"summarize this text wich are the winner and the looser teams. Keep in mind there cannot be 2 loosers in one game: {text}"), max_tokens=100 )
print(response["choices"][0]["text"])
That openai code isn’t related to this project so I’m afraid I won’t be able to help
On Mon, Apr 24, 2023 at 11:22 AM JaninhoE7 @.***> wrote:
Hey @eZEsportler https://github.com/eZEsportler,
Is this screenshot from the YouTube Torben Platzer? you want to get the results as a text right? here ist my code. It works. You have to copy your API key from OpenAi. It is important that the code is between this signs: " API kEY " Have FUN
---------------Code---------------------------------------------------------------------------- ! pip install openai import openai
set the API key
openai.api_key = "Enter here your API Key from OpenAI"
Define the text to summarize
text = """ ------------------fanduel odds data------------------ Milwaukee Bucks (-290) @ Miami Heat (230) Memphis Grizzlies (166) @ Los Angeles Lakers (-198) ---------------XGBoost Model Predictions--------------- Miami Heat vs Milwaukee Bucks (52.6%): OVER 219.5 (50.4%) Los Angeles Lakers vs Memphis Grizzlies (52.3%): UNDER 221.5 (62.3%) --------------------Expected Value--------------------- Miami Heat EV: 56.35 Milwaukee Bucks EV: -29.23 Los Angeles Lakers EV: -28.14 Memphis Grizzlies EV: 38.99
""" Use OpenAI Api to summarize the text
response = openai.Completion.create( engine="text-davinci-002", prompt=(f"summarize this text wich are the winner and the looser teams. Keep in mind there cannot be 2 loosers in one game: {text}"), max_tokens=100 )
Print the summary
print(response["choices"][0]["text"])
— Reply to this email directly, view it on GitHub https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215#issuecomment-1520630805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W72LYIV44LLN34TST3XC3AIFANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you commented.Message ID: @.*** .com>
-- Best, Chris
@chriseling Hey Chris,
this code is from a German YouTuber. He showed it in his video. With this code you have the results as a text just like that:
**Miami Heat and Memphis Grizzlies are the winner teams and Milwaukee Bucks and Los Angeles Lakers are the looser teams.
The Miami Heat vs Milwaukee Bucks game is predicted to go OVER 219.5 points and the Los Angeles Lakers vs Memphis Grizzlies game is predicted to go UNDER 221.5 points.**
text = """
Like this?
"Your Key"
response = openai.Completion.create( engine="text-davinci-002", prompt=(f"summarize this text wich are the winner and the looser teams. Keep in mind there cannot be 2 loosers in one game: {text}"), max_tokens=100 )
Print the summary
print(response["choices"][0]["text"])
yes I put my key in there
Do you use my code ?
This is not related to this project so closing. Can you share the YouTube video?
Honestly you don't need open ai and chat GPT to interpret the results for you, you can just run the model and read the output. Best, Chris
On Mon, Apr 24, 2023 at 11:57 AM Kyle Skompinski @.***> wrote:
Closed #215 https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215 as completed.
— Reply to this email directly, view it on GitHub https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/215#event-9084809317, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP5W7332GC262675VABLLXC3EIJANCNFSM6AAAAAAXJ2RITQ . You are receiving this because you were mentioned.Message ID: <kyleskom/NBA-Machine-Learning-Sports-Betting/issue/215/issue_event/9084809317 @github.com>
@kyleskom ok sorry , I just want to help the guy because I had the same issues. Here is the video https://www.youtube.com/watch?v=3RlExk-o3m4&t=224s
Hello guys. I've been watching this thread since last December and I'm really impressed from the work you've put on. But I need your help because I think, I don't take advantage of the tool 100%. I found you by a youtuber Siraj Raval.
First I want to tell that for an unknown reason, Twitter didn't let me in the developer portal so I skipped the API part.
Second, I run the code on Google Colab and I've written a certain history of the results in my excel. But I have one problem. I think I can't "read" the results appropriately.
For example, here :
How do I read this? I mean what does EV mean? And what does it mean when XGBoost and Neural Network have different EVs? What does the percentage next to the team name mean? If it shows the winning probabilities, why the winning team in that part is different from the winning team in Expected Value section?
I tried to read your guide but I think I miss something. If someone from the team is willing to answer, I would really appreciate it.
Also, one more question. Do you think it's wrong to run it on Google Colab? Is it better to run it on Python?
Thank you in advance.
Please read into expected value. You can google that with statistics and probabiilty or with sports betting. It's simple to understand. As for output that all looks right. Colab or locally shouldn't matter.
Hi, I cant install open ai and cant set an api its showing me this:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Requirement already satisfied: openai in /usr/local/lib/python3.9/dist-packages (0.27.4) Requirement already satisfied: aiohttp in /usr/local/lib/python3.9/dist-packages (from openai) (3.8.4) Requirement already satisfied: requests>=2.20 in /usr/local/lib/python3.9/dist-packages (from openai) (2.28.2) Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from openai) (4.64.1) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (2022.12.7) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.20->openai) (3.4) Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.9.1) Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (23.1.0) Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (6.0.4) Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.3) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (4.0.2) Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp->openai) (1.3.1)