Skip to main content

Modules used to facilitate the tutorial sessions for UNE unit COSC350/550

Project description

une_ai: a library of models and exercises for COSC350/550 unit (Artificial Intelligence)

What is it?

une_ai is a Python package that provides models and classes that can be used to practice Artificial Intelligence algorithms. The package is structured so to offer the tools required during the weekly practical workshops and it also includes classes that can be used as base for the implementation of the practical assignments.

How to install it

UNE students have access to the Turing server machine via ssh command or X2go. This machine runs a Linux based environment and already provides Python3 and pip. It also supports Python virtual environments with venv and conda.

To minimise technical issues and assistance, it is recommended to use the Turing server to implement your code for the workshops and assignments. However, if you feel confident to install Python3 on your machine, you can use the same instructions provided below. Note: these instructions are for Linux or MacOS machines (Windows machines may require different instructions and it is recommended to use Turing instead).

Although not required, it is best to create a Python virtual environment that you will use for your implementations during the unit. You have at least two options: using conda or using venv. In this README file we only provide instructions to install the package using conda (recommended option).

conda environment and package installation with pip

For this option you need to have conda installed on the machine you are using to install this package. If you are using Turing, conda is already installed and supported (no stress :D).

First, we need to create the virtual environment. We will call it cosc350 and once created it will be there until we decide to delete it. In other words, you need to create it once. Remember to answer y and press Enter when conda asks you to provide a y/n answer.

conda create -n cosc350

Now that we created the conda virtual environment, we need to activate it. Remember: you must execute this command everytime you open a new terminal window that you will use to run Python code using this package.

conda activate cosc350

If everything is good, you should see (cosc350) on the left side in the terminal window. That means that now we are using the virtual environment we just created.

To install this package using pip, we need to first install pip in this virtual environment. To do this, type the following command (and answer y when required).

conda install pip

Now that pip was installed on the conda virtual environment, we can install the une_ai package. Once installing, the package will automatically install all the necessary dependencies (again, no stress :D).

pip install une_ai

Again, remember to answer y if conda asks you to install necessary dependencies.

Now, to test that everything is good, let's access the Python console and import a class from the une_ai package. To access the Python3 console type:

python3

Now that you are in the Python3 console, type the following Python commands:

from une_ai.models import GridMap

my_map = GridMap(5, 5)

print(my_map.get_map())

If everything is correct, you should not see errors and you should see a 5 by 5 boolean 2D numpy array. Hurray! :D

To exit the Python3 console type the following instruction and press Enter:

exit()

If you want to deactivate the conda environment (i.e. you do not need it anymore for now and you want to exit the virtual environment), type the following command on the terminal:

conda deactivate

You can achieve the same objective by simply closing the terminal window.

Dependencies

License

MIT

Documentation

For the documentation on how to use the offered classes, visit the weekly workshops. During each workshop there will be instructions introducing the classes used for the proposed exercises.

Getting Help

For usage questions, the best place to go to is the forum of the unit on Moodle. Further, more assistance can be provided by contacting your unit coordinator (via email).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

une_ai-1.1.2.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

une_ai-1.1.2-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file une_ai-1.1.2.tar.gz.

File metadata

  • Download URL: une_ai-1.1.2.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for une_ai-1.1.2.tar.gz
Algorithm Hash digest
SHA256 808395be9ea2bb33a684886f0d79aaef5bdda0d47b5e007ecb50c50e6f0c5260
MD5 4266f3def5c0837f5ceb451a1457199d
BLAKE2b-256 3e5e26d5ae8ffd9d1b363eae73d5e5f34e8120998d1ee96dec6faa57fdb8c8b6

See more details on using hashes here.

File details

Details for the file une_ai-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: une_ai-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for une_ai-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 790e2f221e76c5cfdf6f199691d3233b0cfd0f187899415ea268b82e48a1011e
MD5 de106eb819ca676bc4ed6af0aa19bd35
BLAKE2b-256 5550b6bdbb9be1b1e16c786faf95f63fd3c34069c11e9ffeb31f2fc3fbd7e5a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page