Questions tagged [save]

To store (data) in a computer or on a storage device.

To store data/state in a computer or on a storage device.

Tag Usage

Tags should reflect the mechanism rather than the goal - "saving" has little - if any - taxonomic value.

10023 questions
2
votes
1 answer

Saving and loading a trained GradientBoostingClassifier using joblib.dump

I am trying to save a trained GradientBoostingClassifier using joblib.dump using the following code: # use 90% of training data NI=int(len(X_tr)*0.9) I1=np.random.choice(len(X_tr),NI) Xi=X_tr[I1,:] Yi=Y_tr[I1] #train a GradientBoostingCalssifier…
Swarup Gupta
  • 21
  • 1
  • 3
2
votes
1 answer

How do you call a Function from a Variable? (Python)

Before you claim as a duplicate I have looked at the following: python function call with variable Calling a function of a module from a string with the function's name Executing a function by variable name in…
Chase Barnes
  • 21
  • 1
  • 5
2
votes
2 answers

How do I have to use UserDefaults to save and load my struct?

I´m new at programming. I already created a Codable type, but I don´t know what I have to put in the function viewWillDisappear where the struct should be saved to UserDefaults and what I have to put in the function viewDidAppear where the saved…
Joy Lucas
  • 61
  • 1
  • 10
2
votes
1 answer

Issue occurs in saving data in Android Sqlite database with multiple tables

I followed a tutoral to develop a user registration form. By following that code I create another table call client and create other relevant classes. But once I click the save button, my application has stopped work. I try a lot to fix this error,…
Kash
  • 329
  • 3
  • 15
2
votes
2 answers

How to save file to folder with the name of current Python script file?

I have a Python 3 test.py script where some data is created which I want to save to a file with a user-defined name, say data.csv. The folder in which this script is sitting has a /Results folder inside it. What I want to do is to create a subfolder…
Bella
  • 181
  • 2
  • 11
2
votes
0 answers

A generic error occurred in GDI+ when saving image with jpeg

Image img = picturebox_company_logo.Image as Image; using (MemoryStream ms = new MemoryStream()) { img.Save(ms, ImageFormat.jpeg); byte[] bytes = ms.ToArray(); cmd.Parameters.Add("@compLogo", SqlDbType.Image).Value =…
Yash
  • 181
  • 1
  • 1
  • 13
2
votes
1 answer

TensorFlow: Freezing a model seems to only store the output nodes?

I'm trying to freeze my learned Tensorflow model. This is the taken from the tutorial Deep MNIST for Experts: def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf.Variable(initial) def…
Maarten
  • 6,894
  • 7
  • 55
  • 90
2
votes
3 answers

Writing function in Python saves only the last string (Python)

I am doing pos tagging using 'nltk' in Python and the code below works perfectly fine when I print it. import nltk import pos_tag import nltk.tokenize import numpy f = open(r'C:\Users\sample_data.txt') data = f.readlines() #Parse the text file…
Emily
  • 305
  • 3
  • 13
2
votes
0 answers

UWP File Management

Why does saving a file fail so often on UWP? I open and read the contents of a specified file when the application is initially launched (with the help of a BackgroundWorker). Then when the application is suspending I try to save new content to the…
John
  • 115
  • 3
  • 12
2
votes
0 answers

Windows Emacs still asking "this emacs session has clients, exit anyway?"

[new to emacs, new to lisp] Env: GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17 I run emacs server with EmacsServer-FirstStart.bat: SET HOME=c:\Settings\emacshome SET EMACS_SERVER_FILE=%HOME%\.emacs.d\server\server start "runemacs" /MAX…
lucid_dreamer
  • 362
  • 4
  • 9
2
votes
1 answer

How can I save Login Token in outlook Addin

Im programming an C# Outlook Addin. This Addin should pass some information from an E-mail Item to a Webservice. After im logged in on to the Webservice i get some LoginTokens. My question is where can i save this Login informations, so that I…
themelder
  • 21
  • 1
2
votes
1 answer

How to save/load keras model with several branches

I define a keras (2.0.6) model with two branches the merge these left=Sequential() ... right=Sequential() ... model = Sequential() model.add(Merge([left,right], mode='concat')) model.save('mymodel.model') Then later if I want to…
2
votes
1 answer

How do I save a worksheet to a new workbook?

I am trying to save a single worksheet to a new workbook (VBA should create a new workbook). The code is running and the new workbook is popping up with the needed data and the save as dialogue window also opens but when I select the name and save…
MrDoe
  • 57
  • 1
  • 1
  • 7
2
votes
3 answers

Save Timer HighScore

I am currently working on a game were it has a timer go and the best time is the one that can complete the course the quickest. For example, the first run if I get 40 seconds that will be saved as the high score but if the second run I get 30…
Brownz
  • 35
  • 2
  • 5
2
votes
1 answer

Concurrently write pandas DataFrame to xlsx

I have one DataFrame which needs to be segmented and written to different excel files based on a specific column... df = pd.DataFrame(np.arange(28).reshape((7, 4))) df['group'] = ['a', 'a', 'c', 'c', 'd', 'd', 'e'] 0 1 2 3 group 0 …
Aran Freel
  • 3,085
  • 5
  • 29
  • 42
1 2 3
99
100