Giter Club home page Giter Club logo

deep-reinforcement-learning-for-dynamic-spectrum-access's Introduction

Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access

Dependencies

  1. python link
  2. matplotlib link
  3. tensorflow > 1.0 link
  4. numpy link
  5. jupyter link

We recommend to install with Anaconda

To train the DQN ,run on terminal

git clone https://github.com/shkrwnd/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access.git
cd Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access
python train.py

To understand the code , I have provided jupyter notebooks:

  1. How to use environment.ipynb
  2. How to generate states.ipynb
  3. How_to_create_cluster.ipynb

To run notebook,run on terminal

jupyter notebook

Default browser will open ipynb files. Run each command one by one

This work is an inspiration from the paper

O. Naparstek and K. Cohen, “Deep multi-user reinforcement learning for dynamic spectrum access in multichannel wireless
networks,” to appear in Proc. of the IEEE Global Communications Conference (GLOBECOM), Dec. 2017

deep-reinforcement-learning-for-dynamic-spectrum-access's People

Contributors

shkrwnd avatar teknasd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-reinforcement-learning-for-dynamic-spectrum-access's Issues

Excuse me, my tensorflow is version 1.5, why can't it run?

WARNING:tensorflow:From C:/Users/38461/Desktop/Code/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/train.py:56: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.

WARNING:tensorflow:From C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py:8: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

WARNING:tensorflow:From C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py:9: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

Traceback (most recent call last):
File "C:/Users/38461/Desktop/Code/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master/train.py", line 62, in
mainQN = QNetwork(name='main',hidden_size=hidden_size,learning_rate=learning_rate,step_size=step_size,state_size=state_size,action_size=action_size)
File "C:\Users\38461\Desktop\Code\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\Deep-Reinforcement-Learning-for-Dynamic-Spectrum-Access-master\drqn.py", line 17, in init
self.lstm = tf.contrib.rnn.BasicLSTMCell(hidden_size)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\python\util\lazy_loader.py", line 63, in getattr
return getattr(module, item)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in find_and_load
File "", line 955, in find_and_load_unlocked
File "", line 665, in load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib_init
.py", line 39, in
from tensorflow.contrib import compiler
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler_init
.py", line 21, in
from tensorflow.contrib.compiler import jit
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler_init.py", line 22, in
from tensorflow.contrib.compiler import xla
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\contrib\compiler\xla.py", line 22, in
from tensorflow.python.estimator import model_fn as model_fn_lib
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_core\python\estimator\model_fn.py", line 26, in
from tensorflow_estimator.python.estimator import model_fn
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_init.py", line 10, in
from tensorflow_estimator.api.v1 import estimator
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_api\v1\estimator_init
.py", line 10, in
from tensorflow_estimator.api.v1.estimator import experimental
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator_api\v1\estimator\experimental_init
.py", line 10, in
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py", line 27, in
from tensorflow_estimator.python.estimator import estimator
File "D:\D-ai-progarmming\anaconda3\envs\rl-tf1.15\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 36, in
from tensorflow.python.profiler import trace
ImportError: cannot import name 'trace'

why there are no how to create cluster in the train.py

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.