Henrike-Schwenn / Predicting_bike_rental_demand

My first ai project as part of my take on the amazing online course "Introduction to Machine Learning for Coders" taught by Jeremy Howard. I will be contributing to the Kaggle competition "Bike Sharing Demand", aiming to predict bike rental demand depending on the weather.
3 stars 0 forks source link

Unit test TrainingSet #19

Closed Henrike-Schwenn closed 1 year ago

Henrike-Schwenn commented 3 years ago

Tasks

Henrike-Schwenn commented 2 years ago

Sources

Henrike-Schwenn commented 2 years ago

The unittest module

Installation

PS C:\Users\henri> pip install unittest
WARNING: Ignoring invalid distribution -illow (c:\users\henri\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\henri\appdata\local\programs\python\python39\lib\site-packages)
ERROR: Could not find a version that satisfies the requirement unittest (from versions: none)
ERROR: No matching distribution found for unittest
WARNING: Ignoring invalid distribution -illow (c:\users\henri\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\henri\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\henri\appdata\local\programs\python\python39\lib\site-packages)
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\users\henri\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
PS C:\Users\henri>
Henrike-Schwenn commented 2 years ago

Upgrade to Python 3.10

image

image

Henrike-Schwenn commented 2 years ago

Retry installing unittest

PyCharm

image

PowerShell

image

Henrike-Schwenn commented 2 years ago

Installation error

ERROR: "Could not find a version that satisfies the requirement unittest (from versions: none)"

unittest installation error Could not find a version that satisfies the requirement image

image

Check if unittest is already installed C:\Users\henri\OneDrive\Dokumente\Berufseinstieg\Sprachtechnologie\Predicting_Bike_Rental_Demand>python -m unittest


Ran 0 tests in 0.000s

OK

C:\Users\henri\OneDrive\Dokumente\Berufseinstieg\Sprachtechnologie\Predicting_Bike_Rental_Demand>

ERROR: "No matching distribution found for unittest"

Henrike-Schwenn commented 2 years ago

Run test on TrainingSet.py

Default method: unittest.main()

image

Henrike-Schwenn commented 2 years ago

Re-installing scikit-learn and fastai

PowerShell

  ERROR: Failed building wheel for scikit-learn
Failed to build scikit-learn
ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects

Research error message

"scikit-learn python 3.10 windows" Installing scikit-learn

Installing the latest release

Operating System Windows macOS Linux Packager pip conda

Install the 64bit version of Python 3, for instance from https://www.python.org. Then run:

pip install -U scikit-learn In order to check your installation you can use

python -m pip show scikit-learn # to see which version and where scikit-learn is installed python -m pip freeze # to see all packages installed in the active virtualenv python -c "import sklearn; sklearn.show_versions()"

Note that in order to avoid potential conflicts with other packages it is strongly recommended to use a virtual environment (venv) or a conda environment.

Try latest version

pip install -U scikit-learn

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Henrike-Schwenn commented 2 years ago

Support

Support scikit-learn

Henrike-Schwenn commented 2 years ago

Run unittest.main(verbosity=2) on TrainingSet

Ran 0 tests in 0.000s
OK
Process finished with exit code 0