Lập trình

Q & A cho các lập trình viên chuyên nghiệp và đam mê




5
Việc sử dụng chi tiết trong Keras trong khi xác thực mô hình là gì?
Tôi đang chạy mô hình LSTM lần đầu tiên. Đây là mô hình của tôi: opt = Adam(0.002) inp = Input(...) print(inp) x = Embedding(....)(inp) x = LSTM(...)(x) x = BatchNormalization()(x) pred = Dense(5,activation='softmax')(x) model = Model(inp,pred) model.compile(....) idx = np.random.permutation(X_train.shape[0]) model.fit(X_train[idx], y_train[idx], nb_epoch=1, batch_size=128, verbose=1) Việc sử dụng chi …

13
Làm cách nào để đặt lại tệp đã chọn với loại tệp thẻ đầu vào trong Angular 2?
Đây là cách thẻ đầu vào của tôi trông như thế nào: <input type="file" placeholder="File Name" name="filename" (change)="onChange($event)"> <button>Reset</button> Tôi muốn đặt lại tệp đã chọn trong Angular 2. Trợ giúp sẽ được đánh giá rất cao. Hãy cho tôi biết nếu như bạn cần thêm chị tiết. PS Tôi …
89 angular 

3
anaconda / conda - cài đặt một phiên bản gói cụ thể
Tôi muốn cài đặt gói 'dây' trong môi trường hoạt động hiện tại của mình bằng conda. Hiện tại, các phiên bản 'dây thừng' sau có sẵn: (data_downloader)user@user-ThinkPad ~/code/data_downloader $ conda search rope Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: .... cached-property 1.2.0 py27_0 defaults 1.2.0 py34_0 defaults …
89 python  anaconda 

11
Cách tìm các điều khiển không hợp lệ ở dạng phản ứng góc 4
Tôi có một biểu mẫu phản ứng trong Angular như dưới đây: this.AddCustomerForm = this.formBuilder.group({ Firstname: ['', Validators.required], Lastname: ['', Validators.required], Email: ['', Validators.required, Validators.pattern(this.EMAIL_REGEX)], Picture: [''], Username: ['', Validators.required], Password: ['', Validators.required], Address: ['', Validators.required], Postcode: ['', Validators.required], City: ['', Validators.required], Country: ['', Validators.required] }); createCustomer(currentCustomer: Customer) { if …




9
Laravel: Lỗi cú pháp hoặc vi phạm quyền truy cập: Lỗi 1055
Tôi muốn sử dụng WhereIn và Groupby trong Same Query để tìm nạp Kết quả. Tôi đã thử cái này: $loadids=explode("#@*",$reciptdet->loading_id); $loadingdatas=DB::table('loading')->groupBy('vehicle_no')->whereIn('id',$loadids)->get(); Nhưng tôi nhận được thông báo lỗi này: SQLSTATE [42000]: Lỗi cú pháp hoặc vi phạm quyền truy cập: 1055 'sbrtpt.loading.id' không nằm trong GROUP BY (SQL: select …
89 php  laravel  laravel-5 



13
ListAdapter không cập nhật mục trong RecyclerView
Tôi đang sử dụng thư viện hỗ trợ mới ListAdapter. Đây là mã của tôi cho bộ điều hợp class ArtistsAdapter : ListAdapter<Artist, ArtistsAdapter.ViewHolder>(ArtistsDiff()) { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { return ViewHolder(parent.inflate(R.layout.item_artist)) } override fun onBindViewHolder(holder: ViewHolder, position: Int) { holder.bind(getItem(position)) } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) …


Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.