Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About command 'joblib.load'
#4
The "recommended" code of mine in your post doesn't do any unpickling. It is incapable of generating an unpickling error. Not sure what you are talking about.

To print out long numpy arrays without ". . ." you can set the numpy print options

https://numpy.org/doc/stable/reference/g...tions.html

import joblib
import sys
import numpy as np

np.set_printoptions(threshold=sys.maxsize)
output = joblib.load('/home/yuan/motion_data/output.pkl') 
with open('/home/yuan/motion_data/data.txt', 'w') as file:
    print(output, file=file)
Reply


Messages In This Thread
About command 'joblib.load' - by middlestudent - Sep-24-2023, 01:30 PM
RE: About command 'joblib.load' - by deanhystad - Sep-24-2023, 04:06 PM
RE: About command 'joblib.load' - by middlestudent - Sep-25-2023, 03:18 AM
RE: About command 'joblib.load' - by deanhystad - Sep-25-2023, 04:17 AM
RE: About command 'joblib.load' - by middlestudent - Sep-25-2023, 05:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Joblib worker error sawtooth500 1 327 May-03-2024, 06:44 PM
Last Post: sawtooth500

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020