Skip to content

R code for exchange rate prediction using Multilayer Perceptron (MLP) models with various architectures and evaluation metrics

License

Notifications You must be signed in to change notification settings

DharshanSR/MLP-Neural-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Exchange Rate Prediction using MLP Models

This repository contains R code for predicting exchange rates using Multilayer Perceptron (MLP) models. The code implements various MLP architectures and evaluates their performance on exchange rate prediction.

Description

The code reads exchange rate data from an Excel file and preprocesses it to create lagged versions of the exchange rate series. Then, it normalizes the data and splits it into training and testing datasets. It trains multiple MLP models with different architectures using the training dataset and evaluates their performance using various performance metrics such as Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Symmetric Mean Absolute Percentage Error (sMAPE).

Libraries Used

  • readxl
  • neuralnet
  • dplyr
  • MLmetrics
  • Metrics
  • knitr

Usage

  1. Clone this repository to your local machine.
  2. Install the required R packages listed above if you haven't already.
  3. Run the R script in your preferred environment (e.g., RStudio).
  4. Modify the file path in the script to point to your exchange rate dataset if necessary.

Models Implemented

The following MLP models are implemented and evaluated:

  1. Model 1: Single lagged feature (t1)
  2. Model 2: Multiple lagged features (t1, t2, t3)
  3. Model 3: Multiple lagged features (t1, t2, t3, t4)
  4. Model 4: Combined features (t1, t4, t2)
  5. Model 5: Combined features (t1, t2, t4)
  6. Model 6: Combined features (t1, t2, t3, t4)
  7. Model 7: Selected features (t2, t3)
  8. Model 8: Selected features (t1, t2)
  9. Model 9: Selected features (t1, t4)
  10. Model 10: Combined features (t1, t2, t3, t4)
  11. Model 11: Selected features (t2, t1)
  12. Model 12: Combined features (t1, t3, t4)
  13. Model 13: Combined features (t1, t2, t3)
  14. Model 14: Selected features (t1, t2)

Conclusion

This code provides a systematic approach to exchange rate prediction using MLP models with different architectures. It enables users to experiment with various model configurations and evaluate their performance on exchange rate prediction tasks.

About

R code for exchange rate prediction using Multilayer Perceptron (MLP) models with various architectures and evaluation metrics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages