Questions tagged [seed]

Seed is a JavaScript interpreter and a library of the GNOME project.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

MetaMask seed phrase recovery solution for android [with username and password in possession]

MetaMask currently has a solution for people to recover their seedphrase [when in possession of their username and password] on a desktop or when using an iOS phone. But not when on an Android device. ...
Robert F's user avatar
0 votes
0 answers
19 views

Seeder is not a constructor mongoose-data-seed nextJs

I have website using nextjs and mongoose. for having seed data i used mongoose-data-seed plugin now i get error when run command md-seed run Error is: Seeding Results: × AboutSeeder TypeError: Seeder ...
alireza's user avatar
  • 93
0 votes
1 answer
34 views

PHP Laravel seeding - foreign id

The code below is a factory that is used in my database seeder. The issue is that some comments are under a post and others under another comment. That said, I need to find a way to generate a ...
Payette1996's user avatar
0 votes
1 answer
1k views

Prisma: Unknown argument aliases. Available options are listed in green. How to resolve this issue?

I'm encountering an issue with Prisma where I'm getting the error message "Unknown argument aliases. Available options are listed in green." This error occurs when I try to insert data into ...
ParzivalComputer's user avatar
0 votes
1 answer
116 views

How to get a random seed from /dev/urandom?

In python 3.11 and ubuntu 22.04 I am trying to get a random seed (as opposed to a random number from a seeded system). I have a system running a process that is looping. At various points in the loop ...
betacrash's user avatar
0 votes
0 answers
20 views

Random seed in research papers

To present results in research papers, a random seed is typically used for repeatability. However, it we know that the choice of the random seed can significantly impact the obtained results. This ...
Mohamed Yanis's user avatar
0 votes
1 answer
67 views

Replicate the generation of random number generators using Seedsequence in cpp

I am working on the conversion of Gibb's sampler written in python to cpp. Though the code works fine, there is reproducibility issue. The Python code is able to generate the similar output for any ...
Adhithi S's user avatar
0 votes
1 answer
66 views

How to seed a database from the context

I'm doing an ASP.NET Core MVC demo project for a job interview. The book I'm using shows me how to wire up an MVC project from the empty project template. I'm calling Database.EnsureCreated() in the ...
Iqryn's user avatar
  • 1
-2 votes
1 answer
168 views

TypeError: seed is not a function

I am currently working on an assignment that involves a traveler website and creating a database that stores things like code, name, and length. I am trying to seed data into a database, but I am ...
FireMonkey's user avatar
1 vote
1 answer
51 views

Issues with seed value output of randomized values Java

I am trying to build a program in java that a user inserts a value and with the numbers up to that value, a seed is used to pseudo-randomize the table of values. For example, if the user inputs 5, the ...
JG2022's user avatar
  • 21
0 votes
0 answers
68 views

How should we handle seeds when removing or changing a table in migrations?

In our application, we have predefined items that we want to be included in a production table from the beginning. However, if we need to make changes to the table or delete it, what is the best way ...
denbon05's user avatar
1 vote
1 answer
73 views

Backfilling data in node.js

In Rails I'm using backfill gem to backfill data. Is there something similar in node.js? Not migration schema, but filling/populating data in existing tables. For example, when introducing new column ...
aldm's user avatar
  • 343
0 votes
0 answers
226 views

unable to seed database table with json field using prisma seed

i am trying to seed data with a field json but unable to getting error i tried casting the json object as prisma json object and primsa json value too still got the same error Types of property '...
Faizan Younas Tanooli's user avatar
-1 votes
2 answers
466 views

Python execution log

I'd like to create a log for a Python script execution. For example: import pandas as pd data = pd.read_excel('example.xlsx') data.head() How can I create a log for this script un order to know who ...
Rfl's user avatar
  • 23
0 votes
1 answer
25 views

Generating Total from Seeds? (ActiveRecord)

Right now, I am learning ruby and activerecord, and haven't touched upon rails just yet. I am trying to create a Cart instance with attributes of item, price, quantity, order, and total. I have ...
taram414's user avatar
-1 votes
1 answer
103 views

How to create relations between tables with knex on postgresql database [closed]

Can you show me how can i realiton between 2 table with knex on postgresql that tables are 'user' , 'project' , 'post'. I want to make a relation like in project table i have 'user_id' column so it ...
Ömer Faruk Demirsoy's user avatar
0 votes
0 answers
36 views

Create Seeds with Array of Hashes ActiveRecord

I'm trying to create a user that has keys of cart and purchases with values of an array of hashes which are produce from a farmer's market. When I rake the seed and enter User.first it only returns ...
taram414's user avatar
0 votes
0 answers
23 views

How to obtain reproducible runs in python? [duplicate]

I want to use random.seed() so that my runs will be reproducible. I tried the following code to test if using a set seed value works, however it does not provide me with the same output after every ...
Marloes's user avatar
  • 21
0 votes
1 answer
547 views

BIP39 mnemonic from seed

I have a simple guestion for experst in this topic. How can i get mnemonic from generated seed? const bip39 = require('bip39') var seed = bip39.mnemonicToSeedSync('weasel father present tomorrow shock ...
Pineapple Haze's user avatar
0 votes
0 answers
186 views

Artisan::call('db:seed', ['--force' => true], $outputLog) Laravel 8 Project ERR_EMPTY_RESPONSE

I have two function in controller ` private function migrate($outputLog) { try { Artisan::call('migrate', ["--force"=> true], $outputLog); } catch(...
Jayant kumar's user avatar
0 votes
0 answers
30 views

How to set new seed every time function is called [duplicate]

I want to set new seed every time when function is called. I have tried implementing srand(time(NULL)) in function, that uses rand(). But that doesn't work. I also tried to implement srand(rand()), ...
KazlLaur's user avatar
0 votes
0 answers
218 views

How do I reset data on my seed file and have it start with id of 1?

In my app, I have a seed file that creates random Clients and Events. A client has many events while an event belongs to one client. I had to change the data so I used db:seed:replant to resent my ...
angiem103's user avatar
0 votes
3 answers
92 views

How to seed tables orderly to avoid "Integrity constraint violation" in Laravel 9.x

I have a bookstore project, and have 2 table: publishers and books. These is my two migrate file for books and publishers. <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\...
Phú Huỳnh Gia's user avatar
0 votes
0 answers
31 views

I want oposite seed in my list how can I solve it

for example I have this list: lst = [[0, 1], [0, 1], [0, 1], [1, 0], [1, 0], [1, 0]] and I shuffle it for example with seed = 42: random.seed(42) random.shuffle(lst) I took this list after shuffle: [...
Novinnam's user avatar
3 votes
2 answers
594 views

How can I use a seed inside a loop to get the same random samples everytime the code is ran?

I want to generate data using random numbers and then generate random samples with replacement using the generated data. The problem is that using random.seed(10) only fixes the initial random numbers ...
Various Listen's user avatar
0 votes
1 answer
71 views

Understanding self in python

I am trying to understand self in python, but not getting it correctly. For example consider the below code: class relsel_environment: def __init__(self, seed): self.seed(seed=seed) ...
chaaru's user avatar
  • 25
0 votes
0 answers
62 views

why does my BIP39 seed generation doesnt work?

i'm trying to code a BIP39 wallet, i've generated my entropy and followed the steps to generate the seed... Here's my code: import os import string import binascii from binascii import hexlify import ...
Radia's user avatar
  • 1
0 votes
0 answers
19 views

Why does sklearn give me performance metrics so different from the predictions that it makes on all the other permutations of the same data?

As part of a classification model, I initially used seed 101 to generate my train and test data and calibrate my model. Then I printed the classification report and I got a recall of 0.46 for the ...
Fisiquin's user avatar
-2 votes
1 answer
82 views

C99:I need someone with a good seeding algorithm for Windows 10

The code shown below is for a program that generates a random password. The password char makeup itself is fine, but the issue comes with the password length. It is supposed to be a random number ...
Jacob73's user avatar
0 votes
0 answers
218 views

Error during migration run: TypeError: this.subQuery is not a function

I'm trying to do a migration with a typeorm query made for deleting data in the database of my project (app made with react native and javascript), but the migration is not successfull and I get this ...
donir's user avatar
  • 1
0 votes
0 answers
121 views

Delete using Query Builder?

I'm working on this app made with react native and javascript, where we use the query I leave below to seed data migrations in the backend, but now I need to delete some rows in that seeded data, ...
donir's user avatar
  • 1
0 votes
1 answer
98 views

How to set the number of objects created for Sequence (Laravel 8)

I'm trying to create 30 news using Seeder and Factory. But I need to create 10 news with a non-empty field value published_at (Carbon) а для остальных случайное значение (Carbon/NULL) In the ...
Hopex Development's user avatar
0 votes
2 answers
101 views

Generate lots of fake integers ( scores 1-5 ) without averaging out

I'm writing an e-commerce website for school and i want to populate it with a couple thousand reviews, reclamations, orders, users, etc. Reviews of a product include an integer score (1-5), and the ...
David's user avatar
  • 146
0 votes
1 answer
135 views

np.random.uniform using random seed generator

I want to generate an array of random coordinates with the decimal part randomized within an image with a distance no closer than 40 pixels from each other. I have only been able to create up to 3400 ...
mmfranco's user avatar
0 votes
1 answer
120 views

What is the problem in random.choice function that it does not provide proper result?

Here I am doing simulation experiment by filling pre-defined number of bins with balls which are equal in count. I have defined firstly some number of bins and balls list and num_exp to make ...
Temir's user avatar
  • 21
0 votes
1 answer
321 views

How to create a test and train dataset in R by specifying the range in the data set instead of using set.seed() function and probability?

I am a noob at programming, sorry if this is a silly question. My supervisor doesn't seem to trust set.seed() function in r as every number will yield a different output (with different test and train ...
Deepak R. Shah's user avatar
0 votes
0 answers
805 views

Django: unable to loaddata, UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

I'm new to Django, I'm encounter an error during loaddata. I had completely dump my data in seed_data.json, but when I attempt to loaddata, it came out UnicodeDecodeError: 'utf-8' codec can't decode ...
Chai Yon Xing's user avatar
0 votes
0 answers
448 views

"Connection refused" on Laravel with Docker

I'm using Laravel with Docker, and when I run the romando "php artisan migrate:fresh --seed", laravel does all the migrations, starts the seeds that come before the one with the problem, and ...
Fabricio Gwadera's user avatar
0 votes
0 answers
25 views

How to use a R seed in python for kmeans

Im writing a project using the kmeans algorithm in python. I need to reproduce the result of a partner who is using R, with the seed "123" Is there anyway to use the R seed in python for the ...
Manuel Gustavo Vergara Murillo's user avatar
-3 votes
1 answer
503 views

dropout, recurrent_dropout in LSTM layer

I am training a GRU neural network and added dropout and recurrent dropout in my GRU layer but since then I can't get reproducible results every time I run the program again and I can't fix this ...
Virginie Gautier's user avatar
0 votes
1 answer
74 views

How can I make all possible list combinations using reversible seeds?

I want to have a list made out of 100 items, each item being a value from 0-31 inclusive. I then want to be able to take one of these lists, and know what seed/input is necessary to randomly generate ...
James's user avatar
  • 27
0 votes
0 answers
82 views

javascript all possibilited seed passphrase

i want a javascript function to find 3 missing seed words from bip39 seed phassphrase i have my words list ... but i dont know the right place of words so i need a function in javacsript to generate ...
bewved's user avatar
  • 1
1 vote
2 answers
60 views

R MASS::lda using cov.mve method - reproducability issues

I am trying to model some data, using LDA, which is multivariate non-normal. I was hoping to get a more robust estimation, by choosing method = 'mve'. However this leads to variable predictions - ...
Israel Zadok's user avatar
0 votes
1 answer
460 views

How seed the SCIP solver of google or-tools?

As far as I know, other solvers which are available in or-tools can set specific random seed, but i couldn't find the way for scip solver. How can I seed the SCIP solver?
hanseul jeong's user avatar
0 votes
2 answers
3k views

How to fix Call to undefined method App\Models\TableName::factory?

I have created a seeder that populates data in Laravel but was having a BadMethodCallException Call to undefined method App\Models\Project::factory(). Why is this happening? Below is my seeder code. ...
Jumar Juaton's user avatar
0 votes
1 answer
398 views

set.seed in for loop

I'm doing some analysis and I had to impute some values. To do so, I write this chunk of code: A) set.seed(1) for (i in 2:length (Dataset[-c(8,11)])) { Dataset[,i]<-impute(Dataset[,i], "...
Fili____'s user avatar
4 votes
2 answers
2k views

Reproducibility issue with PyTorch

I'm running a script with the same seed and I see results are reproduced on consecutive runs but somehow running the same script with the same seed changes the output after a few days. I'm only ...
Barah Fazili's user avatar
0 votes
0 answers
1k views

How to determine the balance of available wallets by seed phrase?

I have a task to determine the balance of the wallet by the seed phrase. I use python to generate a child wallet address from it and make an api request. Everything works fine, but I only generate a ...
artemgh's user avatar
  • 103
0 votes
1 answer
150 views

trying to seed my DB on rails - needs interpolation - Errno::ENOENT: No such file or directory

So here is what I am trying to do: big_arr.each do |el| complement_text = 'https://image.tmdb.org/t/p/original' Movie.create(title: el["title"], overview: el["overview"], ...
Juliana Foschiera's user avatar
2 votes
0 answers
150 views

Entity Framework Add-Migration adds seed data to migration file each time I execute add-migration

I have been facing a issue recently, where by there is no change to the model, but when I run add-migration, it generates a file with all the seed data - UpdateData: migrationBuilder.UpdateData( ...
Kunal Krishneel's user avatar

1
2 3 4 5
13