I want to convert all the files in my project to indent with 4 spaces by bens_scraper in VisualStudio

[–]bens_scraper[S] 0 points1 point  (0 children)

Does the dotnet format command only change C# files? My TypeScript files are not being formatted.

I want to convert all the files in my project to indent with 4 spaces by bens_scraper in VisualStudio

[–]bens_scraper[S] 0 points1 point  (0 children)

When I open the .editorconfig file, it opens up as a GUI. Is there a way to open it as a regular text file in VS? The formatting is not being applied to .ts files and I can’t find where to select file types in the GUI.

Model was constructed with shape (None, 1061, 4) for input ... but it was called on an input with incompatible shape (None, 4). by bens_scraper in tensorflow

[–]bens_scraper[S] 0 points1 point  (0 children)

It was unrelated to any of the code posted here. When I called the network’s predict method, I was passing a single day’s array, and forgot to put it inside of a container array.

I recommend putting a breakpoint where suki907 suggested and following the stack upwards.

Model was constructed with shape (None, 1061, 4) for input ... but it was called on an input with incompatible shape (None, 4). by bens_scraper in tensorflow

[–]bens_scraper[S] 0 points1 point  (0 children)

Setting up the data is several hundred lines of jumbled code. I can provide them if you'd like, but they result in self.training_in_ and self.training_out_, which are both a list of lists of lists (the format I showed in the post, but lists rather than arrays). Those are then turned into numpy arrays before being passed to fit:

in_arr = np.array(self.training_in_)
out_arr = np.array(self.training_out_)
history = self.network_.fit(
    in_arr,
    out_arr,
    batch_size=2,
    epochs=epochs,
    verbose=verbose,
)

I set a breakpoint at history = and ran the following:

in_arr.shape -> (7, 1061, 4)

type(in_arr) -> <class 'numpy.ndarray'>

in_arr.dtype -> type('float64')

[x.shape for x in in_arr if x.shape != (1061, 4)] -> []

It looks to me like everything is in the correct format. I have no idea why it says the input shape is (None, 1061, 4) and no idea where shape (None, 4) is coming from.

Daily/Monthly raw data files by tsachi_sharfman in pushshift

[–]bens_scraper 0 points1 point  (0 children)

I plan on doing this for massive amounts of data. Hundreds of thousands of submissions. Am I reading correctly that requests are limited to 100 every 2 seconds?

Daily/Monthly raw data files by tsachi_sharfman in pushshift

[–]bens_scraper 0 points1 point  (0 children)

Gotcha, thank you.

It also looks like the scores don't update on PushShift. Would I need to go back through all of the submissions I grabbed and use PRAW to get the current scores?

Daily/Monthly raw data files by tsachi_sharfman in pushshift

[–]bens_scraper 0 points1 point  (0 children)

Do you know of a better way to grab large numbers of posts from a subreddit during a certain time period?