Assignment Requirements In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demonstrates the use of user-defined modules by invoking functions from imported modules. Your program will accept a distance value and unit of length (miles or kilometers) and will call functions within your user-defined modules to convert the distance to the other unit of length. You will create two modules that contain the functions: one to convert miles to kilometers and one to convert kilometers to miles. Your program should continue converting entered distances until the user chooses to discontinue the program.
Assignment Directions
You will begin by creating the modules that hold the conversion functions. Start a new Python file and build each function to do the appropriate conversions.Create a module named miles.
Create a function within this module named convertToMiles that accepts one value and returns the converted value when called.
Create a second module named kilometers.
Create a function within this module named convertToKilometers that accepts one value and returns the converted value when called.Conversion formulas for your reference:Metric Conversions (Kilometers-to-miles)Metric Conversions (Miles-to-kilometers)
Hint: Modules are created as Python files with the same .py file extension as your main program file. Your modules must be within the same folder/directory as your program file in order to invoke functions from them. Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 4: Definition of a Function; and Programming in Python Chapter 7: Python Modules / 7.2 Module Definition / 7.3 Creating a Module.
Next you will create your Python program to accept user input of a distance value and unit of length (miles or kilometers). You will start by including the import statements at the top of this program. You will import both the miles and kilometers modules you just created.Reminder: These three Python files must exist within the same directory.Reference: Refer to Programming in Python Chapter 7: Python Modules / 7.2 7.5 7.6 Importing Modules.
Initialize variables. You should create two flag variables and initialize them to a value of true: one for when an invalid value is entered and one for when the user chooses to stop the processing (i.e., validValue, processing).
Create a conditional loop that will continue the processing until the user chooses to exit.Hint: Use the processing flag you just created in step 3 as your test condition.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 6: Loops / The While Statement.
Accept a distance value and unit of length from the user and store these two values in variables. Use prompts such as:Please enter a distance value:What is the unit of length (M = miles, KM = kilometers):Hint: Preface your input statement with float to ensure the value they enter is stored as a decimal number for use in the conversion formulas.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 3: Built-In Functions / Getting Input From the User.
Incorporate a decision structure to check the unit of length entered by the user and call the appropriate conversion function from your user-defined modules.If the user entered “M”, call the convertToKilometers function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
If the user entered “KM”, call the convertToMiles function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
Use an else statement for any other values and set the validValue flag to false to indicate an invalid value was entered.
Hint: Use the string function, upper, to convert the user input to uppercase and check for a value of M or KM only.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 5: The if Statement / Comparison Operators / The elif Statement.
If the user entered a valid unit of length, display the distance they entered, the unit of measurement and the converted distance/unit. Otherwise, display an error message. (i.e.. Your distance of 26.2 miles is equivalent to 42.1 kilometers or You entered an invalid unit of length.)Hint: Use an IF/ELSE decision structure here. Concatenate the results into one string.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 2: Print Statements; Chapter 3: Built-In Functions / Concatenation; Chapter 5: The if Statement.
Add another prompt to ask the user if they would like to continue. (i.e., Press X to quit or enter to continue processing.)
If the user entered a value to discontinue processing, set the processing flag to false to conclude the conditional looping and end the program.
Note: These small programming examples include very minimal data validation. Feel free to expand upon this and add additional layers of validation.
Example Output
Please enter a distance value: 26.2
What is the unit of length (M = miles, KM = kilometers) : m
Your distance of 26.2 miles is equivalent to 42.16 kilometers
Press X to quit or enter to continue processing.
Please enter a distance value: 5
What is the unit of length (M = miles, KM = kilometers) : km
Your distance of 5.0 kilometers is equivalent to 3.10 miles
Press X to quit or enter to continue processing. X
End processing of distances.

Assignment Requirements In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demonstrates the use of user-defined modules by invoking functions from imported modules. Your program will accept a distance value and unit of length (miles or kilometers) and will call functions within your user-defined modules to convert the distance to the other unit of length. You will create two modules that contain the functions: one to convert miles to kilometers and one to convert kilometers to miles. Your program should continue converting entered distances until the user chooses to discontinue the program.
Assignment Directions
You will begin by creating the modules that hold the conversion functions. Start a new Python file and build each function to do the appropriate conversions.Create a module named miles.
Create a function within this module named convertToMiles that accepts one value and returns the converted value when called.
Create a second module named kilometers.
Create a function within this module named convertToKilometers that accepts one value and returns the converted value when called.Conversion formulas for your reference:Metric Conversions (Kilometers-to-miles)Metric Conversions (Miles-to-kilometers)
Hint: Modules are created as Python files with the same .py file extension as your main program file. Your modules must be within the same folder/directory as your program file in order to invoke functions from them. Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 4: Definition of a Function; and Programming in Python Chapter 7: Python Modules / 7.2 Module Definition / 7.3 Creating a Module.
Next you will create your Python program to accept user input of a distance value and unit of length (miles or kilometers). You will start by including the import statements at the top of this program. You will import both the miles and kilometers modules you just created.Reminder: These three Python files must exist within the same directory.Reference: Refer to Programming in Python Chapter 7: Python Modules / 7.2 7.5 7.6 Importing Modules.
Initialize variables. You should create two flag variables and initialize them to a value of true: one for when an invalid value is entered and one for when the user chooses to stop the processing (i.e., validValue, processing).
Create a conditional loop that will continue the processing until the user chooses to exit.Hint: Use the processing flag you just created in step 3 as your test condition.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 6: Loops / The While Statement.
Accept a distance value and unit of length from the user and store these two values in variables. Use prompts such as:Please enter a distance value:What is the unit of length (M = miles, KM = kilometers):Hint: Preface your input statement with float to ensure the value they enter is stored as a decimal number for use in the conversion formulas.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 3: Built-In Functions / Getting Input From the User.
Incorporate a decision structure to check the unit of length entered by the user and call the appropriate conversion function from your user-defined modules.If the user entered “M”, call the convertToKilometers function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
If the user entered “KM”, call the convertToMiles function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
Use an else statement for any other values and set the validValue flag to false to indicate an invalid value was entered.
Hint: Use the string function, upper, to convert the user input to uppercase and check for a value of M or KM only.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 5: The if Statement / Comparison Operators / The elif Statement.
If the user entered a valid unit of length, display the distance they entered, the unit of measurement and the converted distance/unit. Otherwise, display an error message. (i.e.. Your distance of 26.2 miles is equivalent to 42.1 kilometers or You entered an invalid unit of length.)Hint: Use an IF/ELSE decision structure here. Concatenate the results into one string.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 2: Print Statements; Chapter 3: Built-In Functions / Concatenation; Chapter 5: The if Statement.
Add another prompt to ask the user if they would like to continue. (i.e., Press X to quit or enter to continue processing.)
If the user entered a value to discontinue processing, set the processing flag to false to conclude the conditional looping and end the program.
Note: These small programming examples include very minimal data validation. Feel free to expand upon this and add additional layers of validation.
Example Output
Please enter a distance value: 26.2
What is the unit of length (M = miles, KM = kilometers) : m
Your distance of 26.2 miles is equivalent to 42.16 kilometers
Press X to quit or enter to continue processing.
Please enter a distance value: 5
What is the unit of length (M = miles, KM = kilometers) : km
Your distance of 5.0 kilometers is equivalent to 3.10 miles
Press X to quit or enter to continue processing. X
End processing of distances.

Assignment Requirements In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demons

Assignment Requirements
In this assignment, you will write a program that demonstrates the use of user-defined modules by invoking functions from imported modules. Your program will accept a distance value and unit of length (miles or kilometers) and will call functions within your user-defined modules to convert the distance to the other unit of length. You will create two modules that contain the functions: one to convert miles to kilometers and one to convert kilometers to miles. Your program should continue converting entered distances until the user chooses to discontinue the program.
Assignment Directions
You will begin by creating the modules that hold the conversion functions. Start a new Python file and build each function to do the appropriate conversions.Create a module named miles.
Create a function within this module named convertToMiles that accepts one value and returns the converted value when called.
Create a second module named kilometers.
Create a function within this module named convertToKilometers that accepts one value and returns the converted value when called.Conversion formulas for your reference:Metric Conversions (Kilometers-to-miles)Metric Conversions (Miles-to-kilometers)
Hint: Modules are created as Python files with the same .py file extension as your main program file. Your modules must be within the same folder/directory as your program file in order to invoke functions from them. Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 4: Definition of a Function; and Programming in Python Chapter 7: Python Modules / 7.2 Module Definition / 7.3 Creating a Module.
Next you will create your Python program to accept user input of a distance value and unit of length (miles or kilometers). You will start by including the import statements at the top of this program. You will import both the miles and kilometers modules you just created.Reminder: These three Python files must exist within the same directory.Reference: Refer to Programming in Python Chapter 7: Python Modules / 7.2 7.5 7.6 Importing Modules.
Initialize variables. You should create two flag variables and initialize them to a value of true: one for when an invalid value is entered and one for when the user chooses to stop the processing (i.e., validValue, processing).
Create a conditional loop that will continue the processing until the user chooses to exit.Hint: Use the processing flag you just created in step 3 as your test condition.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 6: Loops / The While Statement.
Accept a distance value and unit of length from the user and store these two values in variables. Use prompts such as:Please enter a distance value:What is the unit of length (M = miles, KM = kilometers):Hint: Preface your input statement with float to ensure the value they enter is stored as a decimal number for use in the conversion formulas.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 3: Built-In Functions / Getting Input From the User.
Incorporate a decision structure to check the unit of length entered by the user and call the appropriate conversion function from your user-defined modules.If the user entered “M”, call the convertToKilometers function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
If the user entered “KM”, call the convertToMiles function passing in the user entered distance. Store the result of the function call in a new variable (convertedDistance).
Use an else statement for any other values and set the validValue flag to false to indicate an invalid value was entered.
Hint: Use the string function, upper, to convert the user input to uppercase and check for a value of M or KM only.Reference: Refer back to Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 5: The if Statement / Comparison Operators / The elif Statement.
If the user entered a valid unit of length, display the distance they entered, the unit of measurement and the converted distance/unit. Otherwise, display an error message. (i.e.. Your distance of 26.2 miles is equivalent to 42.1 kilometers or You entered an invalid unit of length.)Hint: Use an IF/ELSE decision structure here. Concatenate the results into one string.Reference: Refer back to your Unit 1 readings in Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 2: Print Statements; Chapter 3: Built-In Functions / Concatenation; Chapter 5: The if Statement.
Add another prompt to ask the user if they would like to continue. (i.e., Press X to quit or enter to continue processing.)
If the user entered a value to discontinue processing, set the processing flag to false to conclude the conditional looping and end the program.
Note: These small programming examples include very minimal data validation. Feel free to expand upon this and add additional layers of validation.
Example Output
Please enter a distance value: 26.2
What is the unit of length (M = miles, KM = kilometers) : m
Your distance of 26.2 miles is equivalent to 42.16 kilometers
Press X to quit or enter to continue processing.
Please enter a distance value: 5
What is the unit of length (M = miles, KM = kilometers) : km
Your distance of 5.0 kilometers is equivalent to 3.10 miles
Press X to quit or enter to continue processing. X
End processing of distances.

Introduction: Provides an overview of the project and a short dicsussion on the

Introduction: Provides an overview of the project and a short dicsussion on the

Introduction: Provides an overview of the project and a short dicsussion on the pertinent literature
Research question and methodology: Provides a clear statement on the goals of the project, an overview of the proposed approach, and a formal definition of the problem
Experimental results: Provides an overview of the dataset used for experiments, the metrics used for evaluating performances, and the experimental methodology. Presents experimental results as plots and/or tables
Concluding remarks: Provides a critical discussion on the experimental results and some ideas for future work. I need you to implement a study on python using google cola on this project: Bio Linking (P9)
Instructor: Darya Shlyk, Department of Computer Science, Università degli Studi di MilanoMuch of the world’s healthcare data is stored in free-text documents, such as medical records and clinical notes. Analyzing and extracting meaningful insights from this unstructured data can be challenging. One approach for extracting structured knowledge from a vast corpus of biomedical literature is to annotate the text with concepts from existing knowledge bases.In the context of biomedical information extraction, Concept Recognition (CR) is defined as a two-step process, that consists in identifying and linking textual mentions of biomedical entities, such as genes, diseases, and phenotypes, to corresponding concepts in domain-specific ontologies. The objective of this project is to devise effective strategies for automating the extraction of concepts from unstructured biomedical resources. When developing your CR system, you may decide to focus on a specific class of entities such as diseases or genes and link to any target ontology within the biomedical domain, such as MONDO, Human Phenotype Ontology, etc.For clinical CR, SNOMED CT (Systematized Nomenclature of Medicine Clinical Terms) is a viable option. SNOMED CT is a systematically organized clinical terminology that encompasses a wide range of clinical concepts, including diseases, symptoms, procedures, and body structures.DatasetPossible datasets include, PubMed abstracts and Clinical MIMIC-IV-Note available on request.ReferencesVuokko, Riikka, Anne Vakkuri, and Sari Palojoki. “Systematized Nomenclature of Medicine–Clinical Terminology (SNOMED CT) Clinical Use Cases in the Context of Electronic Health Record Systems: Systematic Literature Review.” JMIR medical informatics 11 (2023): e43750.
Lossio-Ventura, Juan Antonio, et al. “Clinical concept recognition: Evaluation of existing systems on EHRs.” Frontiers in Artificial Intelligence 5 (2023): 1051724.
Toonsi, Sumyyah, Şenay Kafkas, and Robert Hoehndorf. “BORD: A Biomedical Ontology based method for concept Recognition using Distant supervision: Application to Phenotypes and Diseases.” bioRxiv (2023): 2023-02.
Hailu, Negacy D., et al. “Biomedical concept recognition using deep neural sequence m
This is the GitHub link of the course, you can find additional informations about the models you have to use to solve this project: https://github.com/afflint/textsent/tree/master/2023-24

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet lib

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet lib

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet libraries. This is the final task:
Overview of the pipeline you developed: forecasting, ext. regressors, fine tuning NN, news sentiment analysis, evaluation with cross validation.
Results you reached as a prediction (horizon 14 days) and as a prediction of growing/decreasing of the forex
Extra models/ideas/evaluations your group have performed. (For example evaluate the model wrt a baseline, or update the series to use all data until now, or use the scraper to get more news from the past, or use the news to directly train a classifier of growing/decreasing of the next days) This is another hint for the project: Use SpaCy Projects to classify a sentiment analysis dataset composed of reddit posts, then adapt a sentiment analysis dataset of financial news to classify news headlines instead of reddit posts. After that, use the output of the classifier as a Prophet regressor and evaluate the impact on prediction performance. I’ll attach below the file you need to implement the coding on, and another file we used during the lab lectures with some exercises and examples.
Requirements: just complete the task of the lab | .doc file
look at the text classification file. In the first part we used SpaCy Projects to classify a sentiment analysis dataset composed of reddit posts, you need to do the same with the financial bank dataset, then use the output of the classifier as a Prophet regressor and evaluate the impact on prediction performance. Then implement a prediction (horizon 14 days) and as a prediction of growing/decreasing of the forex (merged with the other datasets). We need to use forecasting, ext. regressors, fine tuning NN, news sentiment analysis, evaluation with cross validation. Then we can also use the scraper to get more news from the past, or use the news to directly train a classifier of growing/decreasing of the next days

Assignment Requirements Using the Python shell, execute the following functions.

Assignment Requirements
Using the Python shell, execute the following functions.

Assignment Requirements
Using the Python shell, execute the following functions. You will take screenshots at key points to show the successful execution. These will be placed in a single Word document. Recommended screenshot points are listed within the assigned functions, but you may add screenshots if necessary, to show the successful completion of the assignment. (Hint: Under Windows, some of these functions will accept a single backslash in a file path, while others require double backslash between folders.)
Assignment Instructions
In the Python shell, first import the sys, os, and subprocess modules.Refer to the following Python documentation for more on importing modules: Python Software Foundation. The import system.
Execute os.getlogin()Refer to Python Software Foundation. Miscellaneous operating system interfaces.
Execute os.get_exec_path()Refer to Python Software Foundation. Miscellaneous operating system interfaces.
Take a screenshot.
Execute sys.pathRefer to Python Software Foundation. System-specific parameters and functions
Execute sys.byteorderRefer to Python Software Foundation. System-specific parameters and functions.
Take a screenshot.
Execute os.listdir on your C: driveRefer to Python Software Foundation. Miscellaneous operating system interfaces.
Use os.mkdir to make a new folder on your C: drive named tempPythonRefer to Python Software Foundation. Miscellaneous operating system interfaces.
Take a screenshot.
Use subprocess.Popen to execute the Windows dir command and have its output placed in a text file named pythonOut.txt Hint: The argument for Popen in this case will be (‘C:\windows\system32\cmd.exe “/c dir C:\ >> C:\pythonOut.txt”‘)Refer to Python Software Foundation. Subprocess management.
Open pythonOut.txt in Notepad and position that window next to the Python shell window where both can be seen.
Take a screenshot.
Use subprocess.Popen to open Windows calc.exe utilityRefer to Python Software Foundation. Subprocess management.
Take a screenshot.

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet lib

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet lib

Hi! I need to finish a project on sentiment analysis using SpaCy and Prophet libraries. This is the final task:
Overview of the pipeline you developed: forecasting, ext. regressors, fine tuning NN, news sentiment analysis, evaluation with cross validation.
Results you reached as a prediction (horizon 14 days) and as a prediction of growing/decreasing of the forex
Extra models/ideas/evaluations your group have performed. (For example evaluate the model wrt a baseline, or update the series to use all data until now, or use the scraper to get more news from the past, or use the news to directly train a classifier of growing/decreasing of the next days) This is another hint for the project: Use SpaCy Projects to classify a sentiment analysis dataset composed of reddit posts, then adapt a sentiment
analysis dataset of financial news to classify news headlines instead of reddit posts. After that, use the output of
the classifier as a Prophet regressor and evaluate the impact on prediction performance. I’ll attach below the file you need to implement the coding on, and another file we used during the lab lectures with some exercises and examples.

1. I have created a python program in Colab that simulates betting on a coin fli

1. I have created a python program in Colab that simulates betting on a coin fli

1. I have created a python program in Colab that simulates betting on a coin flip. https://colab.research.google.com/drive/1WkiDjaLvp…
We start with $25. We have a tip that the coin is unbalanced and lands on heads 60% of the time. This program uses the Kelly criterion to determine how much to bet on heads and tails for each bet. The program runs a sequence of 100 bets and determines the final bankroll. This is then repeated 100 times and the final results are summarized. A. You are to use this file to estimate what is the probability of losing money (finishing with less than $25 as a function of the number of bets. (10, 20, 40, 80, 100). Always repeat the run 100 times. B. Same as above but change the probability of heads to 75%
2. I have created a python program in colab that will load the statistics for an arbitrary stock and apply a trading strategy. https://colab.research.google.com/drive/18hjLCRlCc…
The strategy is to compute the Kelly fraction for the stock and then use it when buying and selling. The program uses momentum to decide to trade.
If the stock went up yesterday …it is on a roll. Buy.
If the stock went down yesterday … get out while you can. Sell. I gave an example in class of how Apple stock performed in 2022 and 2023.
Your goal is to find a stock in the S&P 500 that will do the best compared to a buy and hold strategy in each year. I have an idea of what stock is the best for each year, but I don’t know which is the best. That is your job. For 2022 and 2023 report the best stock, the value of buy and hold and the value of the trading bankroll.