question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

forrtl: error (200): program aborting due to control-C event

See original GitHub issue

I was using the standard code, that I found in the internet. This code is about using scikit-learn to select the parameter by using Keras. I am using the code here http://machinelearningmastery.com/grid-search-hyperparameters-deep-learning-models-python-keras/ I am not sure if this problem is because of keras or scikit-learn.

import numpy
from sklearn.grid_search import GridSearchCV
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
# Function to create model, required for KerasClassifier
def create_model():
    # create model
    model = Sequential()
    model.add(Dense(12, input_dim=8, activation='relu'))
    model.add(Dense(1, activation='sigmoid'))
    # Compile model
    model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
    return model
# fix random seed for reproducibility
seed = 7
numpy.random.seed(seed)
# load dataset
dataset = numpy.loadtxt("pima-indians-diabetes.csv", delimiter=",")
# split into input (X) and output (Y) variables
X = dataset[:,0:8]
Y = dataset[:,8]
# create model
model = KerasClassifier(build_fn=create_model, verbose=0)
# define the grid search parameters
batch_size = [10, 20, 40, 60, 80, 100]
epochs = [10, 50, 100]
param_grid = dict(batch_size=batch_size, nb_epoch=epochs)
grid = GridSearchCV(estimator=model, param_grid=param_grid, n_jobs=-1)
grid_result = grid.fit(X, Y)
# summarize results
print("Best: %f using %s" % (grid_result.best_score_, grid_result.best_params_))
for params, mean_score, scores in grid_result.grid_scores_:
    print("%f (%f) with: %r" % (scores.mean(), scores.std(), params))

Then I got some errors.

Using Theano backend.
Using cuDNN version 5110 on context None
Mapped name None to device cuda0: GeForce GTX 750 Ti (0000:01:00.0)
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using Theano backend.
Using cuDNN version 5110 on context None
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown
forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    00007FF9860443E4  Unknown               Unknown  Unknown
KERNELBASE.dll     00007FF99B2A5674  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF99C0B2D92  Unknown               Unknown  Unknown
ntdll.dll          00007FF99DF89F64  Unknown               Unknown  Unknown

I have no idea what happens.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mswellhaocommented, Jul 29, 2017

Have you solved this issue? I meet the same problems as yours. If you have got any solution, please let me know.

Thanks

0reactions
TobeMagiccommented, Apr 15, 2022

i meet the same problem,if you solved this, tell me in this comment please,think you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forrtl: error (200): program aborting due to control-C event
I am trying to run my code on Windows 10 and the code just aborts randomly ... Forrtl: error (200): program aborting due...
Read more >
CTRL-C causes forrtl: error (200) rather than python ...
forrtl : error (200): program aborting due to control-C event. The code I'm working on is fairly long and includes quite a few...
Read more >
forrtl: error (200): program aborting due to control-C event
i have used the matlab compiler (R2008b) to make a shared library (.dll) of some of my matlab code. when i link with...
Read more >
forrtl: error (200): program aborting due to control-C event
pycharm遇到的问题. forrtl: error (200): program aborting due to control-C event. Image PC Routine Line Source libifcoremd.dll 00007FFD5FCA3B58 ...
Read more >
Anyone else has seen "forrtl: error (200) ..." - Python - Bytes
forrtl : error (200): program aborting due to control-C event. If I start python in interactive mode Ctrl+C is passed: bash-3.2$ python
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found