Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character classification - rnn using LSTM #210

Open
vijayzutshi opened this issue Feb 18, 2018 · 0 comments
Open

Character classification - rnn using LSTM #210

vijayzutshi opened this issue Feb 18, 2018 · 0 comments

Comments

@vijayzutshi
Copy link

HI,

I am using LSTM to build a character classification model. I have also taken idea from your code too. I am able to build a model and infer model using following codes:-

model <- mx.lstm(X.train, X.val,
ctx=mx.cpu(),
num.round=num.round,
update.period=update.period,
num.lstm.layer=num.lstm.layer,
seq.len=seq.len,
num.hidden=num.hidden,
num.embed=num.embed,
num.label=vocab,
batch.size=batch.size,
input.size=vocab,
initializer=mx.init.uniform(0.01),
learning.rate=learning.rate,
wd=wd,
optimizer = "sgd",
clip_gradient=clip_gradient)

infer.model <- mx.lstm.inference(num.lstm.layer=num.lstm.layer,
input.size=vocab,
num.hidden=num.hidden,
num.embed=num.embed,
num.label=vocab,
arg.params=model$arg.params,
ctx=mx.cpu())

Now what I want to do is to find the accuracy of the model using R with ROC curve. I would really appreciate if you or someone can provide me with a code in R to do that. Your help will be really appreciated as I not able to figure out as to the procedure or code.

Thanks
Vijay Zutshi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant