Skip to content

alelkr/DAI

 
 

Repository files navigation

Data & AI in Economics

Welcome to our lecture repo for the course "Data & AI in Economics" at the TU Dortmund University.

Links

Lectures

Literature

Missions

Timetable

Setup

As a student you are elegible to use the Github Student program including Copilot, I suggest you sign up for it here.

Local environment setup (optional)

Since we will put everything on our server, you will not need to do this. However, if you want to work on your local machine, you will need to do the following:

How to use Git

Git is a version control system that allows you to track changes in your code. It is a very powerful tool that is widely used in the industry. We will use it in this course to manage the code and the data. 'git' is a command line tool. You can use it in the terminal or in the command prompt. If you are not familiar with the command line, you can use a graphical user interface (GUI) for git. There are many GUIs available, but we recommend GitHub Desktop.

Install Git

To install git, follow the instructions on the official website.

Clone the repository

To clone the repository, open the terminal or the command prompt and navigate to the directory where you want to store the repository. Then run the following command:

git clone https://github.com/firrm/DAI.git

How to use Python

We will use Python as the programming language for this course. Python is a very popular language for data analysis and machine learning. It has a large and active community, and there are many libraries available for data analysis, visualization, and machine learning.

Install Python

To install Python, follow the instructions on the official website.

Deal with different Python Environments

Install pyenv

 curl https://pyenv.run | bash

Add it to your bash

 export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

Install needed version, eg. 3.12

pyenv install 3.12
cd /path/to/your/project
pyenv local 3.12
poetry env use $(pyenv which python)
poetry install

How to use Poetry

We will use Poetry to manage the dependencies of the project. Poetry is a tool for dependency management and packaging in Python. It allows you to declare the dependencies of your project in a simple and declarative way, and it will automatically install the dependencies for you.

Install Poetry

To install Poetry, follow the instructions on the official website.

Install the dependencies

To install the dependencies of the project, run the following command in the terminal or the command prompt:

poetry install

From poetry to pip

If you want to use pip instead of poetry, you can run the following command in the terminal or the command prompt:

poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install -r requirements.txt

How to use Jupyter Notebooks

We will use Jupyter Notebooks to write the code. Jupyter Notebooks are a great tool for data analysis and visualization. They allow you to write and execute code, view the results, and add text and images. You can also export the notebooks to different formats, such as HTML, PDF, or slides.

Install Jupyter Notebook

To install Jupyter Notebook, follow the instructions on the official website.

About

Data & AI in Economics Lecture Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 81.2%
  • Jupyter Notebook 18.8%