Skip to content

Commit

Permalink
add config package
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoderhawk committed Oct 11, 2017
1 parent 082fa7a commit 5e1f77e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/dnlp/config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#-*- coding: UTF-8 -*-
15 changes: 15 additions & 0 deletions python/dnlp/config/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: UTF-8 -*-


class DnnCrfConfig(object):
def __init__(self, *, skip_left: int = 1, skip_right: int = 1, embed_size: int = 100, hidden_units: int = 150,
learning_rate: float = 0.2, lam: float = 1e-4,dropout_rate:float=0.2, batch_length: int = 100, batch_size=20):
self.skip_left = skip_left
self.skip_right = skip_right
self.embed_size = embed_size
self.hidden_units = hidden_units
self.learning_rate = learning_rate
self.lam = lam
self.dropout_rate = dropout_rate
self.batch_length = batch_length
self.batch_size = batch_size

0 comments on commit 5e1f77e

Please sign in to comment.